]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/clone.c
clone: set submodule.recurse=true if submodule.stickyRecursiveClone enabled
authorMahi Kolla <mkolla2@illinois.edu>
Sat, 14 Aug 2021 01:09:56 +0000 (01:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Aug 2021 21:23:17 +0000 (14:23 -0700)
commit48072e3d68049a6bbb4f99f3a381e8b7f3647c52
tree0bfd64a070366ff64e68875929335c95489e6b4d
parent5d213e46bb7b880238ff5ea3914e940a50ae9369
clone: set submodule.recurse=true if submodule.stickyRecursiveClone enabled

Based on current experience, when running git clone --recurse-submodules,
developers do not expect other commands such as pull or checkout to run
recursively into active submodules. However, setting submodule.recurse=true
at this step could make for a simpler workflow by eliminating the need for
the --recurse-submodules option in subsequent commands. To collect more
data on developers' preference in regards to making submodule.recurse=true
a default config value in the future, deploy this feature under the opt in
submodule.stickyRecursiveClone flag.

Signed-off-by: Mahi Kolla <mkolla2@illinois.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
t/t5606-clone-options.sh