[master] avoid duplication when looking up the shorthash

This commit is contained in:
Evan Hunt
2013-09-09 09:26:29 -07:00
parent 41dabe089f
commit d899311194

View 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