summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-09-10 17:02:49 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-10 17:02:49 +0900
commit277194a28050c2eabb605994d592d8e46cab6302 (patch)
treea2f3f420698e7089230a94ff4b807985c7bd7aa3 /builtin
parentMerge branch 'pw/sequence-rerere-autoupdate' into maint (diff)
parentclone: teach recursive clones to respect -q (diff)
downloadtgif-277194a28050c2eabb605994d592d8e46cab6302.tar.xz
Merge branch 'bw/clone-recursive-quiet' into maint
"git clone --recurse-submodules --quiet" did not pass the quiet option down to submodules. * bw/clone-recursive-quiet: clone: teach recursive clones to respect -q
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 08b5cc433c..f7e17d2295 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -768,6 +768,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);
}