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
This commit is contained in:
commit
277194a280
@ -768,6 +768,9 @@ static int checkout(int submodule_progress)
|
|||||||
if (submodule_progress)
|
if (submodule_progress)
|
||||||
argv_array_push(&args, "--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);
|
err = run_command_v_opt(args.argv, RUN_GIT_CMD);
|
||||||
argv_array_clear(&args);
|
argv_array_clear(&args);
|
||||||
}
|
}
|
||||||
|
@ -1289,4 +1289,10 @@ test_expect_success 'init properly sets the config' '
|
|||||||
test_must_fail git -C multisuper_clone config --get submodule.sub1.active
|
test_must_fail git -C multisuper_clone config --get submodule.sub1.active
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'recursive clone respects -q' '
|
||||||
|
test_when_finished "rm -rf multisuper_clone" &&
|
||||||
|
git clone -q --recurse-submodules multisuper multisuper_clone >actual &&
|
||||||
|
test_must_be_empty actual
|
||||||
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user