Here's part of the contents of my .gitmodules file:
[submodule "src/static_management"]
path = src/static_management
url = git://github.com/eykd/django-static-management.git
[submodule "external/pyfacebook"]
path = external/pyfacebook
url = http://github.com/sciyoshi/pyfacebook.git
However, .git/config only contains the first:
[submodule "src/static_management"]
url = git://github.com/eykd/django-static-management.git
The second submodule (external/pyfacebook) was added by another developer in a feature branch. I've inherited the development now, and have checked out the feature branch. However, Git will not pull the submodule for me. I've tried:
git submodule initgit submodule updategit submodule update --initgit submodule sync- Removing all submodule definitions from
.git/configand runninggit submodule init. It only copies over the previously existing submodule and ignores the new one. - Entering new submodule definitions in
.git/configmanually and runninggit submodule update. Only the previously existing submodules bother to update.
in various combinations, but git simply will not update .git/config based on the new contents of .gitmodules, nor will it create the external/pyfacebook folder and pull the submodule's contents.
What am I missing? Is manual intervention (adding a submodule entry by hand to .git/config) truly required, and why?
Edit: Manual intervention does not work. Manually adding the new submodule entry to .git/config doesn't do a thing. The new submodule is ignored.