]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] use 7 character short hash for srcid
authorEvan Hunt <each@isc.org>
Fri, 31 Jul 2015 21:11:08 +0000 (14:11 -0700)
committerEvan Hunt <each@isc.org>
Fri, 31 Jul 2015 21:11:08 +0000 (14:11 -0700)
util/kit.sh

index c7794f9030bf8abeffb2474b1994f31cc12136eb..672c2a5424bb056c9ea6af3a2d7790cb31177442 100644 (file)
@@ -92,9 +92,9 @@ test -f $verdir/version || {
 rm $verdir/version
 rmdir $verdir
 
-shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-8`
+shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-7`
 if [ -z "$shorthash" ]; then
-        shorthash=`git ls-remote $repo refs/tags/$tag | cut -c1-8`
+        shorthash=`git ls-remote $repo refs/tags/$tag | cut -c1-7`
 fi
 if [ -z "$shorthash" ]; then
         echo "Unable to determine hash for $tag, aborting."