clone: pass --progress decision to recursive submodules
[gitweb.git] / connected.c
index 5f5c8bd826cd93ce4af4d7726f748d5ea3862c83..8e3e4b1dc1271f0530d10469dc5ef4eeb46526ea 100644 (file)
@@ -58,6 +58,9 @@ int check_connected(sha1_iterate_fn fn, void *cb_data,
        argv_array_push(&rev_list.args, "--not");
        argv_array_push(&rev_list.args, "--all");
        argv_array_push(&rev_list.args, "--quiet");
+       if (opt->progress)
+               argv_array_pushf(&rev_list.args, "--progress=%s",
+                                _("Checking connectivity"));
 
        rev_list.git_cmd = 1;
        rev_list.in = -1;