-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2.0.2
-
None
-
Severity 2 - Major
Reproduction:
- Create a branch
- In a submodule commit some changes
- Commit the submodule commit ref change in the parent repo
- Merge the branch into another branch
The merge commit contains the correct submodule commit ref, but the submodule is currently set to the old commit ref, and is listed in the working copy changes
TL;DR: When merging a branch with submodule changes, we always have to reset the submodule afterwards.
I think this is not really a bug in SourceTree, Git works like this: the local Submodules are not updated automatically. Apart from "reseting" the submodule, you can just do a "git submodule update" and that fixes it as well. However, a feature of automatically updating submodules would be welcome in SourceTree for sure.