]> git.ipfire.org Git - thirdparty/git.git/commitdiff
cook.sh: do not barf on removed branch when listing Graduated to 'master'
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:53:14 +0000 (17:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Sep 2009 00:53:14 +0000 (17:53 -0700)
cook.sh

diff --git a/cook.sh b/cook.sh
index 328b515fdc853c5e92839a224fc5d8bb2f7126ee..56904fa59fa4a646151b9487f203e169bf079c78 100755 (executable)
--- a/cook.sh
+++ b/cook.sh
@@ -388,7 +388,7 @@ do
        test "$section" = 'Graduated to "master"' &&
        test "$incremental" = no && continue
 
-       tip=$(git rev-parse --quiet --verify "refs/heads/$branch")
+       tip=$(git rev-parse --quiet --verify "refs/heads/$branch") || continue
        mb=$(git merge-base master $tip)
        test "$mb" = "$tip" || continue
        if test -n "$current"