diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-05-03 19:35:11 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-11 10:28:54 -0700 |
commit | 0781aa4766ed88d620ea060c7d775ca806ebfa93 (patch) | |
tree | b17cf2e0c7e937ee6590c8034ef6a9326ff30806 /builtin/clone.c | |
parent | b387c77b12953d543bf5efc3825b5be26d753f9c (diff) | |
download | git-0781aa4766ed88d620ea060c7d775ca806ebfa93.tar.gz git-0781aa4766ed88d620ea060c7d775ca806ebfa93.tar.xz |
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>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 035ab6495..dad426598 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -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); |