This is an old revision of the document!
This setup requires some special handling when initializing the repository and when switching branches, especially to and from branches which do not (yet) have submodules in it.
The purpose of this page is to provide basic instructions to easily deal with commonly encountered issues.
This is covered in the MantisBT Developer's Guide.
@@@TODO - update this when updated docbook has been merged with Master. Until then, copy/paste follows:
Checking out a branch with Submodules when the current branch does not have them.
Checking out a branch without Submodules when the current branch has them.
$ git status # On branch NoSubmodules nothing to commit, working directory clean $ git checkout WithSubmodules M library/adodb M library/phpmailer Switched to branch 'WithSubmodules'
Use the following command to reset all Submodules to the state of their respective recorded commit:
git submodule foreach git checkout -- .
Checking out a branch with Submodules when the current branch has the same submodules but pointing to a different commit.