X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone.sh;h=18e692a67b1515c57a20c8574ed53836fb53f2bd;hb=4eba0f3763e2f4bbf614c99ae3a5b299e8d61aff;hp=71431319c008fbc5771d97c4229e7054efd76395;hpb=036a72d8fa25d9c56c19ae4c761401a58c43b8f6;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" }