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

This widget could not be displayed.

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

109 views 15 7
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