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 init
git submodule update
git submodule update --init
git submodule sync
- Removing all submodule definitions from
.git/config
and runninggit submodule init
. It only copies over the previously existing submodule and ignores the new one. - Entering new submodule definitions in
.git/config
manually 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.