Re: git clone --recursive should run git submodule update with flag --remote

2015-11-11 Thread Stefan Beller
On Wed, Nov 11, 2015 at 4:46 AM, Stanislav wrote: > Consider two repositories, A and B. > > Repo A is embedded into B by using submodule: > > git submodule add -b master sub-a > > So, submodule sub-a is set to track master branch of the repo A. > > Running git submodule update --remote inside r

git clone --recursive should run git submodule update with flag --remote

2015-11-11 Thread Stanislav
Consider two repositories, A and B. Repo A is embedded into B by using submodule: git submodule add -b master sub-a So, submodule sub-a is set to track master branch of the repo A. Running git submodule update --remote inside repo B will automatically update and checkout submodule sub-a to t