The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep SourceTree from cloning and downloading git submodules

Porter Bassett
June 15, 2017

In SourceTree, I clone a repository that has a submodule. I unselect the "Recurse Submodules" option.  This works fine, and the submodule is not downloaded.

But the first time I checkout another branch, SourceTree does a clone and checkout on the submodule. This I do not want.

It does this even if I have turned off Options/Git/"Check submodules before commit & push"

Is there any way to keep it from doing a clone and checkout on the submodules?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2017

Hi

Unfortunately in SourceTree for Windows the "Recurse Submodules" option is only applied to explicit clone operations, not to a checkout which triggers the clone you are witnessing.

You can create a feature request at https://jira.atlassian.com

TAGS
AUG Leaders

Atlassian Community Events