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>
Nguyễn Thái Ngọc Duy committed
May 3, 2013 at 19:35 UTC
0781aa4766ed88d620ea060c7d775ca806ebfa93
1 file changed
+4
builtin/clone.c
+4
@@ -546,8 +546,12 @@ static void update_remote_refs(const struct ref *refs,
546
{
547
const struct ref *rm = mapped_refs;
548
549
+ if (0 <= option_verbosity)
550
+ printf(_("Checking connectivity... "));
551
if (check_everything_connected(iterate_ref_map, 0, &rm))
552
die(_("remote did not send all necessary objects"));
553
+ if (0 <= option_verbosity)
554
+ printf(_("done\n"));
555
556
if (refs) {
557
write_remote_refs(mapped_refs);