X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone.sh;h=18e692a67b1515c57a20c8574ed53836fb53f2bd;hb=42e2cba20466e50825c55d2642da72bf4f088040;hp=71431319c008fbc5771d97c4229e7054efd76395;hpb=c1067050ce58b5b39f528fe634732da858664603;p=git.git diff --git a/git-clone.sh b/git-clone.sh index 71431319..18e692a6 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -53,7 +53,11 @@ Perhaps git-update-server-info needs to be run there?" while read sha1 refname do name=`expr "$refname" : 'refs/\(.*\)'` && - git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1 + case "$name" in + *^*) ;; + *) + git-http-fetch -v -a -w "$name" "$name" "$1/" || exit 1 + esac done <"$clone_tmp/refs" rm -fr "$clone_tmp" }