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

Re: Bug: git-hooks documentation should note that if you are using git-daemon you will *not* see stdout and stderr output from hooks.

From
Joey Hess <joey@kitenet.net>
Date
Sep 1, 2010, 17:41 UTC
Message-ID
<20100901174103.GA23445@gnu.kitenet.net>
In-Reply-To
<AANLkTi=H-W2zVcW_qK-BR8hRZvrv2EhY06Z_JfYYLFQR@mail.gmail.com>
Chris Patti wrote:
Show 6 quoted lines
> How can I go about submitting a bug or a change request or a diff or
> whatever to get this fixed please?
> 
> It's exceedingly confusing for someone just learning about hook
> development, and wasted a few hours of my time I'd rather have spent
> getting my hook running :)

For stderr, git-daemon used to not propigate it, but that was fixed (in 5d87dd4fcac808fc0f0b993b470644ba7d2d62a2 / 1.6.4), at least for git-daemon started with --detach or --inetd.

IIRC, all it took to get it fixed was me complaining on this list and the wonderful git developers seeing it. :)

For example:
joey@gnu:~/src/ikiwiki/doc>git push git://ikiwiki.info/
Counting objects: 10, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 599 bytes, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: removal of attachments is not allowed  <-- stderr from my hook
To git://ikiwiki.info/
 ! [remote rejected] master -> master (pre-receive hook declined)
-- 
see shy jo
Previous: Chris Patti
Message 2 of 2 in “Bug: git-hooks documentation should note that if you are using git-daemon you will *not* see stdout and stderr output from hooks.”
  1. Chris PattiSep 1, 2010
  2. Joey HessSep 1, 2010

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.