From: Pavel Roskin Date: Fri, 11 Nov 2005 05:19:04 +0000 (-0500) Subject: git-clone: quote destination directory name X-Git-Tag: v0.99.9h^2~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e9ab02da77fcf59fdb7d8201d3c5546cd346e63;p=git.git git-clone: quote destination directory name git-clone doesn't quote the full path to the destination directory, which causes it to fail if the path contains spaces or other characters interpreted by the shell. [jc: obviously I was not careful enough. Pavel, thanks for catching.] Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- diff --git a/git-clone.sh b/git-clone.sh index aafcc18ab..f5ef70b8a 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -163,7 +163,7 @@ yes,yes) rm -f "$D/.git/TMP_ALT" if test -f "$D/.git/TMP_ALT" then - ( cd $D && + ( cd "$D" && . git-parse-remote && resolve_alternates "$repo" <"./.git/TMP_ALT" ) | while read alt @@ -191,7 +191,7 @@ yes,yes) ;; esac -cd $D || exit +cd "$D" || exit if test -f ".git/HEAD" then