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

Re: git submodule update strange output behavior.

From
Carlo Wood <carlo@alinoe.com>
Date
Jan 10, 2020, 09:10 UTC
Message-ID
<20200110101040.00b93fa7@hikaru>
In-Reply-To
<xmqqtv54zcik.fsf@gitster-ct.c.googlers.com>
That seems only part of the problem, but yes.

It is only part of the problem because without --quiet I get the same output; that is - the top-level is still quiet, but the submodules aren't. That is out of balance imho.

On Thu, 09 Jan 2020 10:54:27 -0800 Junio C Hamano <gitster@pobox.com> wrote:

Show 37 quoted lines
> Carlo Wood <carlo@alinoe.com> writes:
> 
> > In a project containing submodules, one of the submodules
> > contains a submodule itself, which in turn also contains
> > a submodule.
> >
> > Overview:
> >
> > project/foobar  [submodule]
> > project/cwm4    [submodule]
> > project/evio    [submodule]
> > project/evio/protocol/matrixssl       [submodule]
> > project/evio/protocol/matrixssl/cwm4  [submodule]
> >
> > ('protocol' is a normal subdirectory)
> >
> > Running (with or without the --quiet),
> >
> > $ git submodule --quiet update --init --recursive --remote
> > Fetching submodule protocol/matrixssl
> > Fetching submodule protocol/matrixssl/cwm4
> > Fetching submodule cwm4
> >
> > This is odd (a bug imho) because
> >
> > 1) it seems to only print this fetching information for submodules
> > inside submodules, not for the top-level submodules.
> > 2) it even prints this when using --quiet
> > 3) it prints this every time (also when there is nothing more to
> > fetch).  
> 
> 
> Sounds like a symptom of (a) the top-level "git submodule update"
> knowing how to react to "--quiet" but (b) it forgets to pass down
> the "--quiet" when it recursively runs "git submodule update" in its
> submodules?
> 
-- 
Carlo Wood <carlo@alinoe.com>
Previous: Carlo Wood
Message 7 of 7 in “git submodule update strange output behavior.”
  1. Carlo WoodJan 9, 2020
  2. Junio C HamanoJan 9, 2020
  3. Junio C HamanoJan 9, 2020
  4. Carlo WoodJan 10, 2020
  5. Junio C HamanoJan 10, 2020
  6. Carlo WoodJan 11, 2020
  7. Carlo WoodJan 10, 2020

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.