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

SourceTree: Updating submodules when pulling from a repository

When pulling from a repository containing a newly added submodule, the submodule subdirectory is empty. SourceTree neither updates the submodule contents upon pulling nor do I know how to update manually afterwards from within SourceTree. Currently I'm doing it with "git submodule init" and "git submodule update" on the command line. Is there a way for achieving this from inside SourceTree?

1 answer

1 accepted

2 votes
Answer accepted

Hmm, yes this should be happening automatically but it's not, I'll look into it. It definitely works when cloning, and when you change the tracking options, but it seems pulling a new submodule needs some extra handling.

Tracking this one here: https://jira.atlassian.com/browse/SRCTREE-870

FYI this is now fixed for 1.3.2, and I also made SourceTree deal with uninitialised submodules from other sources better too (you can just double-click on an uninitialised submodule and it will update it automatically before opening it).

Thanks for your quick reply and fix. Looking forward to working with the new release!

I personally would like a way to manually update a submodule. I can't rely on automatic sometimes as a project is sensitive to another sub project's current code base.

Is this broken?  When I pull in 3.0.8, I'm not getting submodule updates.  They show up as modified (but can't be discarded).  I have to use another tool to update them.

Like # people like this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Off-topic

Do you still play the same games you played when you were a kid?

Months ago, I was walking in a huge grocery store and I went to the toys aisle and found a jigsaw puzzle that was more than 50% off, and I thought "why not? It will be fun and it can be a beautiful f...

315 views 35 12
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you