Prevent submodules from automatically loading.

We have several projects with large build dependancies that are included with them. The problem being that we only want to download and install these dependancies the first time you'd need them. We're currently storing these dependancies inside the repository itself (not my favorite but that's what the team went with) so a project that should only be about 100MB to clone is now 800MB to clone. We're looking at possibly breaking these dependancies into submodules but since SourceTree automatically loads them we're no better off. Is it possible to prevent SourceTree from automatically loading the submodules assigned to a git repository?

1 answer

1 accepted

0 vote
Eddie Webb Community Champion Feb 12, 2014

I think you hit the nail on the head Kyle. Binary dependencies should not be in source, and versioned.

Consider tools like Gradle, Maven or language specific dependency management solutions (npm, rvm, etc)

Ignoring the pain for developers, your release and deploy processes are all constrained by the same burden. I would think its not condusive to continuous integration either...

And frankly git's journaling system doesn't handle binaries well, and is very expensive to process. (which isnt a problem for most teams today!)

That's what I had expected. I think I'm going to start persuing solutions that will work better with continuous integration.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

273 views 0 3
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot