@matheusbsbs / matheus-bagliano / commits / 0e9ab02da7
Fork 0

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 <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Pavel Roskin committed Nov 11, 2005 at 00:19 UTC 0e9ab02da77fcf59fdb7d8201d3c5546cd346e63
1 file changed +2 -2
git-clone.sh
+2 -2
@@ -163,7 +163,7 @@ yes,yes)
163 rm -f "$D/.git/TMP_ALT"
164 if test -f "$D/.git/TMP_ALT"
165 then
166 - ( cd $D &&
166 + ( cd "$D" &&
167 . git-parse-remote &&
168 resolve_alternates "$repo" <"./.git/TMP_ALT" ) |
169 while read alt
@@ -191,7 +191,7 @@ yes,yes)
191 ;;
192 esac
193
194 -cd $D || exit
194 +cd "$D" || exit
195
196 if test -f ".git/HEAD"
197 then