Introduction
This post describes how to update submodules of a PyDev project composed of a super-project and several submodules. Specifically is deals with updating python packages in an Eclipse project. If you have used Eclipse itself for the got processing, some older isntructions are available in the post Setup Eclipse teamed with GitHub repository.
This manual is for Frameworks where the clone and the development work are separate. I.e. where the Eclipse project is done on a copy or imported version of the cloned super-project.
Updating submodules - the complete circle
If your work with the Framework development has been done using a copy detached from the local clone of your online (e.g. GitHub) repo of the Framework, this post describes how to
- update your original repos
- stage the updates to the respective submodule repos
- Update the super-project repo, and
- Pull the new super-project framework
When all 4 steps are completed you will have three exact copies of the project on your local machine:
- original repo,
- clone of the online repos, and
- PyDev project in the Eclipse workspace
1 Update your original submodule repos
If you have access to original repos that compose the submodules, follow the steps outlined in the post Add, commit and push submodules. The python module (script) updates the original local repos, and also produces a shell script file. the shell script file will add, commit and push all the changes to the online repo.
2 stage the updates to the respective submodule repos
This is acheived by simply running the shell script file produced from the first step.
3 Update the super-project repo
I DO NOT KNOW HOW TO DO THIS
git submodule update –remote
git submodule update –remote –recursive
git submodule update –init –recursive
git submodule foreach git pull origin master
git submodule update –remote –merge