* [BUG] git push writes to stderr instead of stdout on success
@ 2014-05-19 15:03 Marat Radchenko
2014-05-19 15:49 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Marat Radchenko @ 2014-05-19 15:03 UTC (permalink / raw)
To: git
`git push` writes to stderr instead of stdout
Steps to reproduce:
mkdir foo
cd foo
git init
echo foo > fo
git add -A
git commit -am "foo"
git push . HEAD:refs/heads/newbranch 2>out
Expected: `out` file is empty
Actual: `out` file contents:
To .
* [new branch] HEAD -> newbranch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] git push writes to stderr instead of stdout on success
2014-05-19 15:03 [BUG] git push writes to stderr instead of stdout on success Marat Radchenko
@ 2014-05-19 15:49 ` Jeff King
2014-05-19 16:43 ` Marat Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2014-05-19 15:49 UTC (permalink / raw)
To: Marat Radchenko; +Cc: git
On Mon, May 19, 2014 at 07:03:58PM +0400, Marat Radchenko wrote:
> `git push` writes to stderr instead of stdout
That's by design.
Which one is correct is largely a matter of philosophy / mental model.
This case has been discussed before:
http://thread.gmane.org/gmane.comp.version-control.git/180673
Keep in mind also that "git push --porcelain" does go to stdout and is
machine-parsed, so no other messages can go to stdout when that option
is enabled.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] git push writes to stderr instead of stdout on success
2014-05-19 15:49 ` Jeff King
@ 2014-05-19 16:43 ` Marat Radchenko
0 siblings, 0 replies; 3+ messages in thread
From: Marat Radchenko @ 2014-05-19 16:43 UTC (permalink / raw)
To: Jeff King; +Cc: git
On Mon, May 19, 2014 at 11:49:09AM -0400, Jeff King wrote:
> On Mon, May 19, 2014 at 07:03:58PM +0400, Marat Radchenko wrote:
>
> > `git push` writes to stderr instead of stdout
>
> That's by design.
>
> Which one is correct is largely a matter of philosophy / mental model.
> This case has been discussed before:
>
> http://thread.gmane.org/gmane.comp.version-control.git/180673
>
> Keep in mind also that "git push --porcelain" does go to stdout and is
> machine-parsed, so no other messages can go to stdout when that option
> is enabled.
Oh, missed --porcelain switch. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-19 16:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 15:03 [BUG] git push writes to stderr instead of stdout on success Marat Radchenko
2014-05-19 15:49 ` Jeff King
2014-05-19 16:43 ` Marat Radchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).