Skip to content

Commit

Permalink
clone: reword messages to match the end-user perception
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pete Harlan authored and Junio C Hamano committed May 9, 2010
1 parent 28ba96a commit 921eabd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
set_git_dir(make_absolute_path(git_dir));

if (0 <= option_verbosity)
printf("Cloning into %s...\n", get_git_dir());
printf("Cloning into %s%s...\n",
option_bare ? "bare repository " : "", dir);
init_db(option_template, INIT_DB_QUIET);

/*
Expand Down

0 comments on commit 921eabd

Please sign in to comment.