mirror of
https://github.com/git/git.git
synced 2025-03-27 17:40:00 +00:00
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>
This commit is contained in:
parent
601c978c1b
commit
0e9ab02da7
@ -163,7 +163,7 @@ yes,yes)
|
|||||||
rm -f "$D/.git/TMP_ALT"
|
rm -f "$D/.git/TMP_ALT"
|
||||||
if test -f "$D/.git/TMP_ALT"
|
if test -f "$D/.git/TMP_ALT"
|
||||||
then
|
then
|
||||||
( cd $D &&
|
( cd "$D" &&
|
||||||
. git-parse-remote &&
|
. git-parse-remote &&
|
||||||
resolve_alternates "$repo" <"./.git/TMP_ALT" ) |
|
resolve_alternates "$repo" <"./.git/TMP_ALT" ) |
|
||||||
while read alt
|
while read alt
|
||||||
@ -191,7 +191,7 @@ yes,yes)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cd $D || exit
|
cd "$D" || exit
|
||||||
|
|
||||||
if test -f ".git/HEAD"
|
if test -f ".git/HEAD"
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user