I had the same problem - it turned out that the .gitmodules file was committed, but the actual commit of the submodule (i.e. the record of the fix identifier of the submodule) was not.
Adding it manually seemed to do the trick - for example:
git submodule add http:
(Even without removing anything from .git / config or .gitmodules.)
Then commit it to write the identifier correctly.
Adding additional comments to this working answer: if updating the submodule git initodule or git does not work, then as described above git subodule add url should do the trick. You can check it out on
git config --list
and you need to get the submodule entry that you want to extract from the git config -list command. If, as a result of the setup, there is a record of your submodule, now the usual update of the git --init submodule should pull out your submodule. To test this step, you can manually rename the submodule and then update the submodule.
mv yourmodulename yourmodulename-temp git submodule update
To find out if you have local changes in a submodule, you can see it through git status -u (if you want to see changes in a submodule) or git status --ignore-subodules (if you don't want to see changes in a submodule).
Dave James Miller Jan 28 2018-12-12T00: 00Z
source share