Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events