summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-07-15 10:33:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-20 19:11:09 (GMT)
commit38e590ea12336bcfae0310092885743e6ba79781 (patch)
treeec8a4f25eab5f6dff4b2b47494c1327c377372da /builtin
parent70d5e2d77b4c2afdb442b37924bc252793e106d9 (diff)
downloadgit-38e590ea12336bcfae0310092885743e6ba79781.zip
git-38e590ea12336bcfae0310092885743e6ba79781.tar.gz
git-38e590ea12336bcfae0310092885743e6ba79781.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 32fe606..f044a8c 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -627,13 +627,10 @@ static void update_remote_refs(const struct ref *refs,
struct check_connected_options opt = CHECK_CONNECTED_INIT;
opt.transport = transport;
+ opt.progress = transport->progress;
- if (transport->progress)
- fprintf(stderr, _("Checking connectivity... "));
if (check_connected(iterate_ref_map, &rm, &opt))
die(_("remote did not send all necessary objects"));
- if (transport->progress)
- fprintf(stderr, _("done.\n"));
}
if (refs) {