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

Re: git push --quiet option does not seem to work

From
Jeff King <peff@peff.net>
Date
May 16, 2016, 13:37 UTC
Message-ID
<20160516133731.GA6903@sigill.intra.peff.net>
In-Reply-To
<alpine.DEB.2.20.1605161526510.3303@virtualbox>
On Mon, May 16, 2016 at 03:28:30PM +0200, Johannes Schindelin wrote:
Show 17 quoted lines
> > PS H:\test-ps\myrepo> git push --quiet
> > git : remote:
> > At line:1 char:1
> > + git push --quiet
> > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >     + CategoryInfo          : NotSpecified: (remote: :String) [],
> > RemoteException
> >     + FullyQualifiedErrorId : NativeCommandError
> > 
> > remote: Analyzing objects... (3/3) (119 ms)
> > remote: Storing packfile... done (113 ms)
> > remote: Storing index... done (29 ms)
> 
> So it actually works, eh?
> 
> Could you please verify that this is a PowerShell-only problem by
> performing a similar push in Git CMD and in Git Bash?

I don't know much about PowerShell, but presumably it is responsible for the first few lines.

But there is something else going on, too, which is those "remote:" lines. Those are being relayed from the server by the git client. I don't think it would be correct for the client to suppress them, even with "--quiet", because the client side has no idea if they are progress junk or critical error messages.

The client _does_ pass along the "quiet" flag to the server via the git protocol, so it should be the server's responsibility to drop progress output when it is present. The server side here is clearly not stock git, from the content of those progress messages (some googling shows it looks like whatever visualstudio.com is running, but I don't know what that is). So either the server implementation doesn't support the "quiet" protocol extension, or it is ignoring it. It might be worth filing a bug with them.

-Peff
Previous: Johannes SchindelinNext: Chris B
Message 10 of 14 in “git push --quiet option does not seem to work”
  1. Chris BMay 13, 2016
  2. Jeff KingMay 13, 2016
  3. Chris BMay 15, 2016
  4. Chris BMay 15, 2016
  5. Jeff KingMay 15, 2016
  6. Chris BMay 16, 2016
  7. Jeff KingMay 16, 2016
  8. Chris BMay 16, 2016
  9. Johannes SchindelinMay 16, 2016
  10. Jeff KingMay 16, 2016
  11. Chris BMay 16, 2016
  12. Johannes SchindelinMay 16, 2016
  13. Jeff KingMay 16, 2016
  14. Chris BMay 17, 2016

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.