What does selecting Repository -> "Enable Submodule support" actually do??

Jorge Suarez January 30, 2019

We have a repo that contains submodules because it makes organizing folder structure compatible with a 3rd party product we are stuck using. 

What exactly does this option do?? I know submodules point to a specific commit, not to a branch.  But with git there is also the option to add branch = xxxxx to .gitmodules file.  

It seems the option runs:

 git clone --recurse-submodules

is there a standard way to get each branch to the latest branch develop??

I assume: git submodule foreach --recursive 'git checkout develop; git pull'

Thanks!

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 9, 2019

Hi! 

 

We are facing the same issue. 

BTW, we are added git aliases for  the standard command which include submodule commands.

 

Hope it helps

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events