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

Can't get git to stop outputting to StdErr

From
SCScott R. Chamberlain <srchamberlain@impromed.com>
Date
Oct 28, 2016, 20:31 UTC
Message-ID
<c09d32d8ab97418d98ddf356e20a6ff5@ES4.impromed.com>
I am working on some build scripts that get run on TFS. During the build process I need to check in the changes that where done during the build process (A set of binaries other projects depend on).
I would really like to leave the option "Fail on Standard Error" enabled for the script in TFS, however my push keeps writing to standard error even though I told it not to.
The line I do is:
    git push -q binaryRepo HEAD:"$Env:BUILD_SOURCEBRANCH"
But I get the following in my log after the build
    2016-10-28T20:05:32.3179442Z ##[error]remote: 
    remote: Analyzing objects... (3/3) (657 ms)        
    remote: Storing packfile... done (40 ms)        
    remote: Storing index... done (42 ms)        
    
    2016-10-28T20:05:32.3209423Z Done
    2016-10-28T20:05:32.4019436Z ##[error]Process completed with exit code 0 and had 1 error(s) written to the error stream.
    2016-10-28T20:05:32.4029436Z ##[debug]System.Exception: Process completed with exit code 0 and had 1 error(s) written to the error stream.
Why am I still getting output to standard error when I included the `-q` switch?
For reference, `git version` reports `2.10.0.windows.1` and HEAD is a detached HEAD.

Scott Chamberlain Software Engineer ImproMed, LLC

-- 
Rely On Us.
ImproMed LLC
Henry Schein Animal Health
--
Next: Junio C Hamano
Message 1 of 4 in “Can't get git to stop outputting to StdErr”
  1. Scott R. ChamberlainOct 28, 2016
  2. Junio C HamanoOct 28, 2016
  3. Scott R. ChamberlainOct 28, 2016
  4. Scott R. ChamberlainDec 19, 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.