diff options
author | Pavel Roskin <proski@gnu.org> | 2005-11-11 06:19:04 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-11 10:15:00 +0100 |
commit | 0e9ab02da77fcf59fdb7d8201d3c5546cd346e63 (patch) | |
tree | f826eed5fc0bbd6a8e335c6a90faba0e12ae1f7d /git-clone.sh | |
parent | Add --no-commit-id option for git-diff-tree, use it in gitk (diff) | |
download | git-0e9ab02da77fcf59fdb7d8201d3c5546cd346e63.tar.xz git-0e9ab02da77fcf59fdb7d8201d3c5546cd346e63.zip |
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>
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-x | git-clone.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clone.sh b/git-clone.sh index aafcc18aba..f5ef70b8af 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 |