I have a submodule who's submodules I don't need. For example:
mainProject
- usefulSubmodule
- notNeededSubmodule
So in mainProject
, I define my .gitmodules
like so:
[submodule "usefulSubmodule"]
path = lib/usefulSubmodule
url = https://whatever
fetchRecurseSubmodules = false
Then I run git submodule update --init --recursive
after updating, and it seems that this is ignoring the value of fetchRecurseSubmodules
(which I guess may be true according to the documentation https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegtfetchRecurseSubmodules )
So therefore my question is, how do I disable this behavior without overriding it during update? What is the best way to update all my submodules while respecting that flag?