git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Duy Nguyen <pclouds@gmail.com>
Date
May 18, 2019, 11:40 UTC
Message-ID
<CACsJy8BypLygJGW67mtomL=VLQLVuPSsYTx-3+Dp_Zg-hkSVpA@mail.gmail.com>
In-Reply-To
<1376dce1-6ca1-88f2-97c9-c8dd2ac683a1@riscosopen.org>
On Fri, May 17, 2019 at 12:50 AM Ben Avison <bavison@riscosopen.org> wrote:
Show 24 quoted lines
>
> On 16/05/2019 12:31, Duy Nguyen wrote:
> > On Tue, May 14, 2019 at 2:46 AM Ben Avison <bavison@riscosopen.org> 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 checked out on their
> >> remote-tracking branch rather than with the SHA-1 recorded in the superproject.
> >
> > Are there any other submodule options that could be useful passing
> > from git-clone as well? What I'm getting at is, if there are multiple
> > of them, perhaps we need a different/generic approach than introducing
> > a bunch of --<something>-submodules. But of course if --remote is the
> > only useful one left, then it's moot.
>
> That's an interesting point. However, for many of the switches, it only
> makes sense to set them one way when you're calling `git submodule
> update` within `git clone --recurse-submodules`.
>
> ...
>
>
> In summary, the most significant omission is --remote IMHO, though there
> may be an argument for adding a small number of others.
Great! Thanks for checking.
-- 
Duy>>
Previous: Ben Avison
Message 7 of 7 in “clone: add `--remote-submodules` flag”
  1. clone: add `--remote-submodules` flagBen Avison, May 13, 2019
  2. Ævar Arnfjörð BjarmasonMay 13, 2019
  3. Ben AvisonMay 14, 2019
  4. clone: add `--remote-submodules` flagBen Avison, May 19, 2019
  5. Duy NguyenMay 16, 2019
  6. Ben AvisonMay 16, 2019
  7. Duy NguyenMay 18, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.