Skip to content

Commit

Permalink
git-clone: quote destination directory name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Roskin authored and Junio C Hamano committed Nov 11, 2005
1 parent 601c978 commit 0e9ab02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -191,7 +191,7 @@ yes,yes)
;;
esac

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

if test -f ".git/HEAD"
then
Expand Down

0 comments on commit 0e9ab02

Please sign in to comment.