{"thread":{"id":"2446","subject":"[PATCH] git-clone: quote destination directory name","startedAt":"2005-11-11T05:19:04Z","lastAt":"2005-11-11T05:19:04Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11549","messageId":"1131686344.31172.24.camel@dv","threadId":"2446","inReplyTo":null,"subject":"[PATCH] git-clone: quote destination directory name","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-11-11T05:19:04Z","receivedAt":"2005-11-11T05:19:04Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"git-clone doesn't quote the full path to the destination directory,\nwhich causes it to fail if the path contains spaces or other characters\ninterpreted by the shell.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\ndiff --git a/git-clone.sh b/git-clone.sh\nindex 4fdd652..0f37dff 100755\n--- a/git-clone.sh\n+++ b/git-clone.sh\n@@ -163,7 +163,7 @@ yes,yes)\n \t\t\trm -f \"$D/.git/TMP_ALT\"\n \t\tif test -f \"$D/.git/TMP_ALT\"\n \t\tthen\n-\t\t    ( cd $D &&\n+\t\t    ( cd \"$D\" &&\n \t\t      . git-parse-remote &&\n \t\t      resolve_alternates \"$repo\" <\"./.git/TMP_ALT\" ) |\n \t\t    while read alt\n@@ -191,7 +191,7 @@ yes,yes)\n \t;;\n esac\n \n-cd $D || exit\n+cd \"$D\" || exit\n \n if test -f \".git/HEAD\"\n then\n\n\n-- \nRegards,\nPavel Roskin\n"}]}