From d899311194070821e9e261e07d7cf75bb189bb77 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 9 Sep 2013 09:26:29 -0700 Subject: [PATCH] [master] avoid duplication when looking up the shorthash --- util/kit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/kit.sh b/util/kit.sh index 6f5fa51df7..cd0d905c9a 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