]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] avoid duplication when looking up the shorthash
authorEvan Hunt <each@isc.org>
Mon, 9 Sep 2013 16:26:29 +0000 (09:26 -0700)
committerEvan Hunt <each@isc.org>
Mon, 9 Sep 2013 16:26:29 +0000 (09:26 -0700)
util/kit.sh

index 6f5fa51df7136c648e9937e05981d2edde3e935b..cd0d905c9a348d913f9eadb54d837be33b8095b6 100644 (file)
@@ -123,7 +123,7 @@ test ! -d $topdir || {
 mkdir $topdir || exit 1
 
 git archive --format=tar $remote $tag | ( cd $topdir; tar xf -)
-shorthash=`git ls-remote $repo $tag | cut -c1-8`
+shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-8`
 
 cd $topdir || exit 1