I have a repository with various nested submodules. Committing and pushing works pretty well and the changes are visible at GitHub as expected.
In the testing/production environments, new releases of this project are being deployed using these commands:
git pull --recurse-submodules
git submodule update --init --recursive
But this only updates the root project, none of the submodules are updated to the commits associated with the HEAD at GitHub. So far the only way I have found to update the whole project is to run git pull
inside each individual submodule folder.
I understand that git submodule update
is the method referenced in most places, but it is not really producing any results in this case. What could be the cause?