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

Re: git --recurse-submodule does not recurse to sub-submodules (etc.)

From
MHMaximilian Held <maximilian.held83@gmail.com>
Date
Jan 23, 2015, 22:02 UTC
Message-ID
<CACgLhq_V-uj1pNjKyEA8RaOtxjfNca+R0LRPp-6KgDw6NCCGpg@mail.gmail.com>
In-Reply-To
<54BEC6C7.8070103@web.de>
Thanks, Jens.
Incidentally,
git submodule update --init --recursive
Does exactly what expected – it updates sub/sub/submodules, so there
is certainly some inconsistency in how the --recursive flag is handled
here.
info@maxheld.de | http://www.maxheld.de | http://www.civicon.de |
Mobil: +49 151 22958775 | Skype: maximilian.held
Bremen International Graduate School of Social Sciences | Wiener
Straße / Celsiusstraße | 28359 Bremen | Germany
On Tue, Jan 20, 2015 at 10:21 PM, Jens Lehmann <Jens.Lehmann@web.de> wrote:
Show 19 quoted lines
> Am 19.01.2015 um 21:19 schrieb Maximilian Held:
>
>> I have a directory with nested submodules, such as:
>>
>> supermodule/submodule/sub-submodule/sub-sub-submodule
>>
>> When I cd to supermodule and do:
>>
>> "git push --recurse-submodule=check" (or on-demand),
>>
>> git only pushes the submodule, but not the sub-submodule etc.
>>
>> Maybe this is expected behavior and not a bug, but I thought it was
>> pretty unintuitive. I expected that git would push, well, recursively.
>
>
> I agree this is unexpected and should be fixed. I suspect the fix
> would be to teach the push_submodule() function to use the same
> flags that were used for the push in the superproject.
Previous: Jens Lehmann
Message 3 of 3 in “git --recurse-submodule does not recurse to sub-submodules (etc.)”
  1. Maximilian HeldJan 19, 2015
  2. Jens LehmannJan 20, 2015
  3. Maximilian HeldJan 23, 2015

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.