]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
branch: exit if no upstream changes
authorElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 16:36:46 +0000 (19:36 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 16 Oct 2016 16:36:46 +0000 (19:36 +0300)
branch.sh

index 669da041008d172802cd6335594ba715919502c9..643a61920c18da23b9b29831a88c5cf366321764 100755 (executable)
--- a/branch.sh
+++ b/branch.sh
@@ -3,7 +3,7 @@ set -e
 svn=svn://svn.lighttpd.net/lighttpd
 url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
 package=lighttpd
-tag=lighttpd-1.4.41
+tag=lighttpd-1.4.42
 branch=master
 out=$package-branch.diff
 repo=$package.git
@@ -41,6 +41,12 @@ cd $repo
        git log -p --reverse $tag..$branch | filter > ../$out.tmp
 cd ..
 
+if ! test -s $out.tmp; then
+       echo >&2 "No diffs..."
+       rm -f $out.tmp
+       exit 0
+fi
+
 if cmp -s $out{,.tmp}; then
        echo >&2 "No new diffs..."
        rm -f $out.tmp
This page took 0.191459 seconds and 4 git commands to generate.