Re: git daemon --access-hook problem
- From
- Eugene 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,