Skip to content

Commit

Permalink
clone: let the user know when check_everything_connected is run
Browse files Browse the repository at this point in the history
check_everything_connected could take a long time, especially in the
clone case where the whole DAG is traversed. The user deserves to know
what's going on.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed May 11, 2013
1 parent b387c77 commit 0781aa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,12 @@ static void update_remote_refs(const struct ref *refs,
{
const struct ref *rm = mapped_refs;

if (0 <= option_verbosity)
printf(_("Checking connectivity... "));
if (check_everything_connected(iterate_ref_map, 0, &rm))
die(_("remote did not send all necessary objects"));
if (0 <= option_verbosity)
printf(_("done\n"));

if (refs) {
write_remote_refs(mapped_refs);
Expand Down

0 comments on commit 0781aa4

Please sign in to comment.