From: Elan Ruusamäe Date: Sun, 16 Oct 2016 16:36:46 +0000 (+0300) Subject: branch: exit if no upstream changes X-Git-Tag: AC-branch~12 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Flighttpd.git;a=commitdiff_plain;h=b9c01e290304137ccee38715c319856993ae2653 branch: exit if no upstream changes --- diff --git a/branch.sh b/branch.sh index 669da04..643a619 100755 --- 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