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
--

Reply via email to