{"thread":{"id":"37539","subject":"[PATCH] pre-push.sample: Write error message to stderr","startedAt":"2014-09-11T20:35:30Z","lastAt":"2014-09-11T20:35:30Z","messageCount":1,"participants":["W. Trevor King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"249257","messageId":"48e0d9c541a5aad9644a0d1ec67b67de454cde5b.1410467299.git.wking@tremily.us","threadId":"37539","inReplyTo":null,"subject":"[PATCH] pre-push.sample: Write error message to stderr","fromName":"W. Trevor King","fromEmail":"wking@tremily.us","sentAt":"2014-09-11T20:35:30Z","receivedAt":"2014-09-11T20:35:30Z","isPatch":true,"sender":{"key":"wking@tremily.us","avatar":"https://avatars.githubusercontent.com/u/209920?v=4"},"body":"githooks(5) suggests:\n\n  Information about why the push is rejected may be sent to the user\n  by writing to standard error.\n\nSo follow that advice in the sample.\n\nSigned-off-by: W. Trevor King <wking@tremily.us>\n---\n templates/hooks--pre-push.sample | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/templates/hooks--pre-push.sample b/templates/hooks--pre-push.sample\nindex 1f3bceb..7cb911c 100755\n--- a/templates/hooks--pre-push.sample\n+++ b/templates/hooks--pre-push.sample\n@@ -45,7 +45,7 @@ do\n \t\tcommit=`git rev-list -n 1 --grep '^WIP' \"$range\"`\n \t\tif [ -n \"$commit\" ]\n \t\tthen\n-\t\t\techo \"Found WIP commit in $local_ref, not pushing\"\n+\t\t\techo \"Found WIP commit in $local_ref, not pushing\" >&2\n \t\t\texit 1\n \t\tfi\n \tfi\n-- \n2.1.0.60.g85f0837\n"}]}