I have nested submodules in my project and when i switch to a different commit on the parent repo the submodules do not update, I tried checking the "recursive" setting in the Options menu, but it did not help!
Community moderators have prevented the ability to post new answers.
Welcome to the Atlassian community!
Since this thread is from 2023, is it still relevant for you?
If yes, this is what I would try. The "recursive" checkbox in Sourcetree applies to clone and fetch, not to checkout, which is why nothing happened for you. Check out in Git does not touch submodules unless you tell Git to do so globally.
I would set this once in a terminal (the setting only takes effect for the Git installation Sourcetree actually calls):
git config --global submodule.recurse true
Sourcetree uses your system Git, so after that, a checkout of a different commit also updates the submodule working trees, including nested ones.
Cheers,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.