{"thread":{"id":"36700","subject":"[BUG] git push writes to stderr instead of stdout on success","startedAt":"2014-05-19T15:03:58Z","lastAt":"2014-05-19T16:43:19Z","messageCount":3,"participants":["Marat Radchenko","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"242163","messageId":"20140519150358.GA3099@seldon","threadId":"36700","inReplyTo":null,"subject":"[BUG] git push writes to stderr instead of stdout on success","fromName":"Marat Radchenko","fromEmail":"marat@slonopotamus.org","sentAt":"2014-05-19T15:03:58Z","receivedAt":"2014-05-19T15:03:58Z","isPatch":false,"sender":{"key":"marat@slonopotamus.org","avatar":"https://avatars.githubusercontent.com/u/92637?v=4"},"body":"`git push` writes to stderr instead of stdout\n\nSteps to reproduce:\n\n  mkdir foo\n  cd foo\n  git init\n  echo foo > fo\n  git add -A\n  git commit -am \"foo\"\n  git push . HEAD:refs/heads/newbranch 2>out\n\nExpected: `out` file is empty\n\nActual: `out` file contents:\n\nTo .\n * [new branch]      HEAD -> newbranch\n"},{"id":"242172","messageId":"20140519154909.GD20289@sigill.intra.peff.net","threadId":"36700","inReplyTo":"20140519150358.GA3099@seldon","subject":"Re: [BUG] git push writes to stderr instead of stdout on success","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-05-19T15:49:09Z","receivedAt":"2014-05-19T15:49:09Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, May 19, 2014 at 07:03:58PM +0400, Marat Radchenko wrote:\n\n> `git push` writes to stderr instead of stdout\n\nThat's by design.\n\nWhich one is correct is largely a matter of philosophy / mental model.\nThis case has been discussed before:\n\n  http://thread.gmane.org/gmane.comp.version-control.git/180673\n\nKeep in mind also that \"git push --porcelain\" does go to stdout and is\nmachine-parsed, so no other messages can go to stdout when that option\nis enabled.\n\n-Peff\n"},{"id":"242177","messageId":"20140519164319.GA3468@seldon","threadId":"36700","inReplyTo":"20140519154909.GD20289@sigill.intra.peff.net","subject":"Re: [BUG] git push writes to stderr instead of stdout on success","fromName":"Marat Radchenko","fromEmail":"marat@slonopotamus.org","sentAt":"2014-05-19T16:43:19Z","receivedAt":"2014-05-19T16:43:19Z","isPatch":false,"sender":{"key":"marat@slonopotamus.org","avatar":"https://avatars.githubusercontent.com/u/92637?v=4"},"body":"On Mon, May 19, 2014 at 11:49:09AM -0400, Jeff King wrote:\n> On Mon, May 19, 2014 at 07:03:58PM +0400, Marat Radchenko wrote:\n> \n> > `git push` writes to stderr instead of stdout\n> \n> That's by design.\n> \n> Which one is correct is largely a matter of philosophy / mental model.\n> This case has been discussed before:\n> \n>   http://thread.gmane.org/gmane.comp.version-control.git/180673\n> \n> Keep in mind also that \"git push --porcelain\" does go to stdout and is\n> machine-parsed, so no other messages can go to stdout when that option\n> is enabled.\n\nOh, missed --porcelain switch. Thanks.\n"}]}