From: Richard Hartmann Date: Thu, 27 Oct 2011 16:46:53 +0000 (+0200) Subject: clone: Quote user supplied path in a single quote pair X-Git-Tag: v1.7.8-rc0~6^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8debf696380cad2283b4cfaea78962b8d5923149;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/clone.c b/builtin/clone.c index 488f48e9a..efe8b6cce 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -577,9 +577,9 @@ int cmd_clone(int argc, const char **argv, const char *prefix) if (0 <= option_verbosity) { if (option_bare) - printf(_("Cloning into bare repository %s...\n"), dir); + printf(_("Cloning into bare repository '%s'...\n"), dir); else - printf(_("Cloning into %s...\n"), dir); + printf(_("Cloning into '%s'...\n"), dir); } init_db(option_template, INIT_DB_QUIET); write_config(&option_config);