Browse Source

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>
maint
Pavel Roskin 19 years ago committed by Junio C Hamano
parent
commit
0e9ab02da7
  1. 4
      git-clone.sh

4
git-clone.sh

@ -163,7 +163,7 @@ yes,yes) @@ -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) @@ -191,7 +191,7 @@ yes,yes)
;;
esac

cd $D || exit
cd "$D" || exit

if test -f ".git/HEAD"
then

Loading…
Cancel
Save