It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Submodule branch tracking in the SourceTree

I have a repository with few branches and submodules. Submodules have branches of their own. On each branch of the main repository I use a particular branch of the corresponding submodule. The SourceTree correctly tracks subbodule commits from the active branch.

However, the active submodule branch which corresponds to a given main repository branch is not always being handled by the SourceTree. When I switch main repository branches and then open submodules, SourceTree doesn't know which active branch that submodule is on even though it correctly displays the active commit. I have to explicitly put submodule on the correct branch through SourceTree GUI.

This behavior results in erroneous pull/push request from/to the submodule branches when someone forgets to explicitly put submodule on the correct branch.

It should be possible to set submodule to a correct active branch when it is open. Is this an issue with the SourceTree?



2 answers

0 votes

Which OS and version of SourceTree are you running?

MS Windows 7 and SourceTree


Is anyone at Altassian looking into this? This bug causes a lot of issues in our daily work! When switching between main repository branches SourceTree messes up the project content when submodules have local branches.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,430 views 13 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you