RE: fatal: could not reset submodule index

2018-06-18 Thread Antoine W. Campagna
> That is true; submodule.recurse is not affecting git clone. > This was a design decision once it was introduced, as the git clone might be > too large. Maybe we need to revisit that decision and just clone the > submodules if submodule.recurse is set. > > The problem that this bug report

RE: fatal: could not reset submodule index

2018-06-14 Thread Antoine W. Campagna
On Wed, Jun 13, 2018 at 18:19, Antoine W. Campagna wrote: > Here is the full reproduction instructions: Newlines got mangled, making my message hard to read. Sorry. Here is the corrected reproduction instructions: # Create a repository mkdir main cd main git init touch main.txt git add main.

fatal: could not reset submodule index

2018-06-13 Thread Antoine W. Campagna
Hi, I would like to add submodules to existing projects. Some branches would have the submodules and some branches would not. Since we often switch from one branch to another, I would like the submodules to update automatically so I activate the option submodule.recurse. But I am experiencing a