From b9c01e290304137ccee38715c319856993ae2653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 16 Oct 2016 19:36:46 +0300 Subject: [PATCH] branch: exit if no upstream changes --- branch.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.43.0