clone: use a real progress meter for connectivity check
Because the initial connectivity check for a cloned repository can be slow, 0781aa4 (clone: let the user know when check_everything_connected is run, 2013-05-03) added a "fake" progress meter; we simply say "Checking connectivity" when it starts, and "done" at the end, with nothing between. Since check_connected() now knows how to do a real progress meter, we can drop our fake one and use that one instead. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jul 15, 2016 at 06:33 UTC
38e590ea12336bcfae0310092885743e6ba79781
1 file changed
+1
-4
builtin/clone.c
+1
-4
@@ -627,13 +627,10 @@ static void update_remote_refs(const struct ref *refs,
627
struct check_connected_options opt = CHECK_CONNECTED_INIT;
628
629
opt.transport = transport;
630
+ opt.progress = transport->progress;
631
631
- if (transport->progress)
632
- fprintf(stderr, _("Checking connectivity... "));
632
if (check_connected(iterate_ref_map, &rm, &opt))
633
die(_("remote did not send all necessary objects"));
635
- if (transport->progress)
636
- fprintf(stderr, _("done.\n"));
634
}
635
636
if (refs) {