From 03c004c581fb0ecd40bf21990449f393934b15ef Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 3 Aug 2017 15:25:44 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- builtin/clone.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'builtin') 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); } -- cgit v1.2.1