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

Re: [PATCH] update hook: redirect _both_ diagnostic lines to stderr upon tag failure

From
Junio C Hamano <junkio@cox.net>
Date
Dec 28, 2006, 22:14 UTC
Message-ID
<7v8xgrvfac.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87tzzg6oyp.fsf@rho.meyering.net>
Jim Meyering <jim@meyering.net> writes:
> Otherwise, sending the diagnostic to stdout would provoke a protocol failure.
Very true; thanks for the patch.

However, I suspect that we'd want to prevent this by redirecting on the caller side, so that the hook writers do not have to worry about the issue. I haven't looked at the code that runs the hook for some time but we should be able to do that...

Previous: Jim Meyering
Message 2 of 2 in “update hook: redirect _both_ diagnostic lines to stderr upon tag failure”
  1. update hook: redirect _both_ diagnostic lines to stderr upon tag failureJim Meyering, Dec 28, 2006
  2. Junio C HamanoDec 28, 2006

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.