I have a git repo which has a submodule. The contents of the .gitmodule file for the main repo are:
[submodule "wits-mercuryAPI"]
path = wits-mercuryAPI
url = https://github.com/myorganization/wits-mercuryAPI.git
I would expect that when I issue the command...
git submodule update
... it would correctly clone the submodule from the location specified in the url of the .gitmodule file. However, it apparently tries to use an older version of this file where the url points to an incorrect url, and therefore fails.
For the life of me I can't figure out why it behaves this way or what magic hidden property is telling this command to access some older and invisible version of the .gitmodules file.
git submodule initfirst?git submodule initcommand yields no output and does not change anything - the behavior ofgit submodule updatecontinues to be exactly as described in the original post.