summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-05-03 19:35:11 +0700
committerJunio C Hamano <gitster@pobox.com>2013-05-11 10:28:54 -0700
commit0781aa4766ed88d620ea060c7d775ca806ebfa93 (patch)
treeb17cf2e0c7e937ee6590c8034ef6a9326ff30806 /builtin/clone.c
parentb387c77b12953d543bf5efc3825b5be26d753f9c (diff)
downloadgit-0781aa4766ed88d620ea060c7d775ca806ebfa93.tar.gz
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 035ab64950..dad4265989 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);