Commit ab571c1f authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] make sure both tags and branches work with

parent d8993111
......@@ -124,6 +124,13 @@ mkdir $topdir || exit 1
git archive --format=tar $remote $tag | ( cd $topdir; tar xf -)
shorthash=`git ls-remote $repo refs/heads/$tag | cut -c1-8`
if [ -z "$shorthash" ]; then
shorthash=`git ls-remote $repo refs/tags/$tag | cut -c1-8`
if [ -z "$shorthash" ]; then
echo "Unable to determine hash for $tag, aborting."
exit 1
cd $topdir || exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment