time a submodule is added in one of the projects, each
developer would get the "fatal: could not reset submodule index" error and
would be unable to checkout master branch.
> # Trying again with submodule.recurse
> git config --global submodule.recurse true
> git clone main clone4 cd clone4
> git checkout with-submodule
> # Submodule is still not automatically updated (sub folder is empty)
> # It seems like submodule.recurse does not affect git clone
That is true; su
# Fails with these error messages :
# fatal: not a git repository: ../.git/modules/sub
# fatal: could not reset submodule index
# It seems like Git tries to update the submodule but without having
initialized the submodule cd ..
# Trying again with submodule.recurse
git config --global
problem if I do the following:
1. Clone repo, with master containing no submodules
2. Checkout a branch that contains submodules. It results in this error:
fatal: not a git repository: ../.git/modules/submodule
fatal: could not reset submodule index
I think git is trying to
4 matches
Mail list logo