summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorRichard Hartmann <richih.mailinglist@gmail.com>2011-10-27 16:46:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-27 19:02:02 (GMT)
commit8debf696380cad2283b4cfaea78962b8d5923149 (patch)
tree2b0d1825ba301c2d43c53113936f38b3d8e7f2b4 /builtin/clone.c
parent25f745fbec0e92a29e33aa85413c2bf7762608bf (diff)
downloadgit-8debf696380cad2283b4cfaea78962b8d5923149.zip
git-8debf696380cad2283b4cfaea78962b8d5923149.tar.gz
git-8debf696380cad2283b4cfaea78962b8d5923149.tar.bz2
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>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 488f48e..efe8b6c 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);