Update git-apply to use C-style quoting for funny pathnames.
[gitweb.git] / git-clone.sh
index 71431319c008fbc5771d97c4229e7054efd76395..78c83e84c26ff6b75f08609ecc3b5cb2cac7c09b 100755 (executable)
@@ -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"
 }