[PATCH] clone: add `--remote-submodules` flag

2019-05-13 Thread Ben Avison
superproject. This patch rectifies this situation. It actually passes `--no-fetch` to `git submodule update` as well on the grounds they the submodule has only just been cloned, so fetching from the remote again only serves to slow things down. Signed-off-by: Ben Avison --- Documentation/git-clone.txt

Re: [PATCH] clone: add `--remote-submodules` flag

2019-05-14 Thread Ben Avison
On 13/05/2019 22:12, Ævar Arnfjörð Bjarmason wrote: On Mon, May 13 2019, Ben Avison wrote: + if (option_remote_submodules == 1) { I see you copied this from code above the context, but to check a bool variable just use "if (var)" not "if (var == 1)". OK

Re: [PATCH] clone: add `--remote-submodules` flag

2019-05-16 Thread Ben Avison
On 16/05/2019 12:31, Duy Nguyen wrote: On Tue, May 14, 2019 at 2:46 AM Ben Avison wrote: When using `git clone --recurse-submodules` there was previously no way to pass a `--remote` switch to the implicit `git submodule update` command for any use case where you want the submodules to be

[PATCH v2] clone: add `--remote-submodules` flag

2019-05-19 Thread Ben Avison
superproject. This patch rectifies this situation. It actually passes `--no-fetch` to `git submodule update` as well on the grounds they the submodule has only just been cloned, so fetching from the remote again only serves to slow things down. Signed-off-by: Ben Avison --- Documentation/git-clone.txt