@matheusbsbs / matheus-bagliano / commits / 921eabde9d
Fork 0

clone: reword messages to match the end-user perception

When cloning into a non-bare repository, e.g. "git clone $URL mine", we used to report that we are cloning into "mine/.git". Reword the report to say "Cloning into mine" instead, as that matches what the end-user asked for closer. Make the message for "git clone --bare $URL mine" to say "Cloning into bare repository mine" do make the distinction between this case and the above stand out a bit more prominently. Suggested-by: Jeff King <peff@peff.net> Signed-off-by: Pete Harlan <pgit@pcharlan.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Pete Harlan committed May 9, 2010 at 13:10 UTC 921eabde9d0b9b43b293b37ac701bdfd10a64f54
1 file changed +2 -1
builtin/clone.c
+2 -1
@@ -464,7 +464,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
464 set_git_dir(make_absolute_path(git_dir));
465
466 if (0 <= option_verbosity)
467 - printf("Cloning into %s...\n", get_git_dir());
467 + printf("Cloning into %s%s...\n",
468 + option_bare ? "bare repository " : "", dir);
469 init_db(option_template, INIT_DB_QUIET);
470
471 /*