aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-08-03 15:25:44 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-04 09:08:37 -0700
commit03c004c581fb0ecd40bf21990449f393934b15ef (patch)
treea88503c206459c608ee08f55f2815eae9c65271c /builtin
parentcf8899d285d2648013040ec7196ffd3de0606664 (diff)
downloadgit-03c004c581fb0ecd40bf21990449f393934b15ef.tar.gz
git-03c004c581fb0ecd40bf21990449f393934b15ef.tar.xz
clone: teach recursive clones to respect -q
Teach 'git clone --recurse-submodules' to respect the '-q' option by passing down the quiet flag to the process which handles cloning of submodules. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/clone.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index a6ae7d618..f81b12330 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -764,6 +764,9 @@ static int checkout(int submodule_progress)
if (submodule_progress)
argv_array_push(&args, "--progress");
+ if (option_verbosity < 0)
+ argv_array_push(&args, "--quiet");
+
err = run_command_v_opt(args.argv, RUN_GIT_CMD);
argv_array_clear(&args);
}