diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:29 -0700 |
commit | 6d09fc54f60cfd8d91f471c3bcdc935c8e301458 (patch) | |
tree | 513b94beae2d7bc6f6a125ca932bf69262d9daa5 /t | |
parent | Merge branch 'ab/mailmap-leakfix' (diff) | |
parent | clone: set submodule.recurse=true if submodule.stickyRecursiveClone enabled (diff) | |
download | tgif-6d09fc54f60cfd8d91f471c3bcdc935c8e301458.tar.xz |
Merge branch 'mk/clone-recurse-submodules'
After "git clone --recurse-submodules", all submodules are cloned
but they are not by default recursed into by other commands. With
submodule.stickyRecursiveClone configuration set, submodule.recurse
configuration is set to true in a repository created by "clone"
with "--recurse-submodules" option.
* mk/clone-recurse-submodules:
clone: set submodule.recurse=true if submodule.stickyRecursiveClone enabled
Diffstat (limited to 't')
-rwxr-xr-x | t/t5606-clone-options.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5606-clone-options.sh b/t/t5606-clone-options.sh index 3a595c0f82..d822153e4d 100755 --- a/t/t5606-clone-options.sh +++ b/t/t5606-clone-options.sh @@ -16,6 +16,18 @@ test_expect_success 'setup' ' ' +test_expect_success 'submodule.stickyRecursiveClone flag manipulates submodule.recurse value' ' + + test_config_global submodule.stickyRecursiveClone true && + git clone --recurse-submodules parent clone_recurse_true && + test_cmp_config -C clone_recurse_true true submodule.recurse && + + test_config_global submodule.stickyRecursiveClone false && + git clone --recurse-submodules parent clone_recurse_false && + test_expect_code 1 git -C clone_recurse_false config --get submodule.recurse + +' + test_expect_success 'clone -o' ' git clone -o foo parent clone-o && |