fetchFromGitHub: fix fetchSubmodules=true when revision is not hexadecimal

This commit is contained in:
Volth
2017-07-04 20:22:13 +00:00
parent c73f0caea5
commit 535a6c3520
4 changed files with 25 additions and 21 deletions
+2 -2
View File
@@ -282,8 +282,8 @@ _clone_user_rev() {
if test -z "$(echo "$rev" | tr -d 0123456789abcdef)"; then
clone "$dir" "$url" "$rev" "" 1>&2
else
echo 1>&2 "Bad commit hash or bad reference."
exit 1
# if revision is not hexadecimal it might be a tag
clone "$dir" "$url" "" "refs/tags/$rev" 1>&2
fi;;
esac