fabpot/Sismo — Issue #52: switching branches with different submodules
Author: havvg
Created: 2012-02-24 14:03:30+00:00
State: open

I got a project, where the current development branch is far ahead of the current master branch. The main issue now is the switch between the branches during the builds of both projects in `Sismo`.

I started working on this issue for the initial run at https://github.com/havvg/Sismo/tree/hotfix/submodules
However, I noticed afterwards, that `Sismo` is switching the branches within the same build directory, which does not work for this scenario. There two ways this could be solved:

1. Add a `sync` command which runs `git submodule sync` after the checkout of the branch to build.
2. Include the branch in the hashing for the build directory, separating both `Sismo\Project` sharing the same repository but having different branches.

I tend to the second one, as it clearly separates things and is much more cleaner, as e.g. the old folders of submodules won't be there anymore. What do you think about it?