From: Evan Hunt Date: Mon, 9 Sep 2013 16:26:29 +0000 (-0700) Subject: [master] avoid duplication when looking up the shorthash X-Git-Tag: v9.10.0a1~114 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d899311194070821e9e261e07d7cf75bb189bb77;p=thirdparty%2Fbind9.git [master] avoid duplication when looking up the shorthash --- diff --git a/util/kit.sh b/util/kit.sh index 6f5fa51df71..cd0d905c9a3 100644 --- a/util/kit.sh +++ b/util/kit.sh @@ -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