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

Re: git daemon --access-hook problem

From
ESEugene Sajine <euguess@gmail.com>
Date
Jun 3, 2013, 20:00 UTC
Message-ID
<CAPZPVFaJ0qOhxMYDxhq4+qnWQjjhFRUjzGAemqjwAAoxC8-EDQ@mail.gmail.com>
In-Reply-To
<CALWbr2ynF425qfCNr_NGH8z9UiX2G2CRrWiCo2XrgBLBbyPHMw@mail.gmail.com>
Right, --informative-errors does make it better;)

Actually the CWD for the access-hook is not where the hook script is, but inside the .git folder of the target repo. GTK.

and yes, definitely some documentation improvements needed;)
Thanks!
On Mon, Jun 3, 2013 at 3:05 PM, Antoine Pelisse <apelisse@gmail.com> wrote:
Show 14 quoted lines
> On Mon, Jun 3, 2013 at 8:02 PM, Eugene Sajine <euguess@gmail.com> wrote:
>> Would you be able to advise how this should be done?
>> I don't get the error message (i mean the output of pwd) if i do this:
>>
>> echo `pwd`
>> exit 1
>>
>> What should it be?
>
> Actually, after digging into the code, it looks like you need to call
> git-daemon with "--informative-errors" if you want to allow custom
> errors. Maybe there is place for improvement in the documentation.
>
> Cheers,
Previous: Antoine Pelisse
Message 6 of 6 in “git daemon --access-hook problem”
  1. Eugene SajineMay 31, 2013
  2. Eugene SajineJun 3, 2013
  3. Antoine PelisseJun 3, 2013
  4. Eugene SajineJun 3, 2013
  5. Antoine PelisseJun 3, 2013
  6. Eugene SajineJun 3, 2013

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.