clone: Quote user supplied path in a single quote pair
Without this patch, $ git clone foo . results in this: Cloning into .... done. With it: Cloning into '.'... done. Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
25f745fbec
commit
8debf69638
@ -577,9 +577,9 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
|
|||||||
|
|
||||||
if (0 <= option_verbosity) {
|
if (0 <= option_verbosity) {
|
||||||
if (option_bare)
|
if (option_bare)
|
||||||
printf(_("Cloning into bare repository %s...\n"), dir);
|
printf(_("Cloning into bare repository '%s'...\n"), dir);
|
||||||
else
|
else
|
||||||
printf(_("Cloning into %s...\n"), dir);
|
printf(_("Cloning into '%s'...\n"), dir);
|
||||||
}
|
}
|
||||||
init_db(option_template, INIT_DB_QUIET);
|
init_db(option_template, INIT_DB_QUIET);
|
||||||
write_config(&option_config);
|
write_config(&option_config);
|
||||||
|
Loading…
Reference in New Issue
Block a user