Skip to content

Commit 0781aa4

Browse files
pcloudsgitster
authored andcommitted
clone: let the user know when check_everything_connected is run
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>
1 parent b387c77 commit 0781aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/clone.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,12 @@ static void update_remote_refs(const struct ref *refs,
546546
{
547547
const struct ref *rm = mapped_refs;
548548

549+
if (0 <= option_verbosity)
550+
printf(_("Checking connectivity... "));
549551
if (check_everything_connected(iterate_ref_map, 0, &rm))
550552
die(_("remote did not send all necessary objects"));
553+
if (0 <= option_verbosity)
554+
printf(_("done\n"));
551555

552556
if (refs) {
553557
write_remote_refs(mapped_refs);

0 commit comments

Comments
 (0)