RE: fatal: could not reset submodule index

2018-06-18 Thread Antoine W. Campagna
every 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.

Re: fatal: could not reset submodule index

2018-06-15 Thread Stefan Beller
> # 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;

RE: fatal: could not reset submodule index

2018-06-14 Thread Antoine W. Campagna
# 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

fatal: could not reset submodule index

2018-06-13 Thread Antoine W. Campagna
a 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