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

"git fetch" does not pass quiet setting to "git c"

From
MFMatthew Flaschen <mflaschen@wikimedia.org>
Date
Aug 14, 2014, 04:11 UTC
Message-ID
<53EC3704.7060907@wikimedia.org>
"git fetch" does not pass the quiet flag (if applicable) to "git gc".

I've reproduced this in 2.0.1, but it appears to be present in master. It looks like this line (https://github.com/git/git/blob/master/builtin/fetch.c#L1201) is calling "git gc" (which does support --quiet) without passing it.

Tested with:
git fetch -q origin master
I would expect to see no output for that.  Instead, I see:
"Total 31 (delta 23), reused 31 (delta 23)"
(or whatever the values are).

This will cause cronjobs, for example, to send output when the command completes normally.

Thanks,
Matthew Flaschen
Message 1 of 1 in “"git fetch" does not pass quiet setting to "git c"”
  1. Matthew FlaschenAug 14, 2014

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.