From: Evan Hunt Date: Mon, 9 Sep 2013 17:34:48 +0000 (-0700) Subject: [master] make sure both tags and branches work with kit.sh X-Git-Tag: v9.10.0a1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab571c1f5b79183068f11d83888ecd9c5b8f8cd4;p=thirdparty%2Fbind9.git [master] make sure both tags and branches work with kit.sh --- diff --git a/util/kit.sh b/util/kit.sh index cd0d905c9a3..6c6d7f3ed43 100644 --- a/util/kit.sh +++ b/util/kit.sh @@ -124,6 +124,13 @@ mkdir $topdir || exit 1 git archive --format=tar $remote $tag | ( cd $topdir; tar xf -) shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-8` +if [ -z "$shorthash" ]; then + shorthash=`git ls-remote $repo refs/tags/$tag | cut -c1-8` +fi +if [ -z "$shorthash" ]; then + echo "Unable to determine hash for $tag, aborting." + exit 1 +fi cd $topdir || exit 1