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

Re: git daemon --access-hook problem

From
Antoine Pelisse <apelisse@gmail.com>
Date
Jun 3, 2013, 17:20 UTC
Message-ID
<CALWbr2ypPCoftVLfP9uKeKStg3TWwLDchkUaL1d9s9O3kcuPwA@mail.gmail.com>
In-Reply-To
<CAPZPVFZDHHGyHhzBVVK6jS=XhEd2+JpmBT8ofiGOww8vuLUWWw@mail.gmail.com>
On Fri, May 31, 2013 at 10:22 PM, Eugene Sajine <euguess@gmail.com> wrote:
Show 6 quoted lines
> and trying to perform some operations like fetch or push. It is cloned
> and fetches and pushes successfully.
> The problem is that the file test_hook_out.txt doesn't have anything
> in it after the execution, So the hook doesn't seem to work.
>
> What might be the issue here?
I have no idea what the issue might be, but here's how I usually debug
this kind of situations:
- Exit with a non-zero value will make it an error, try "exit 1" at
the end of your script, you will know if it's executed or not
- Your log file might not be located where you expect, you should use
absolute path to dump text
- Dump the cwd to know where it's executed from
- The documentation says you can print one line before a failure, also
try this to show the cwd

Hope that helps, Antoine,

Previous: Eugene SajineNext: Eugene Sajine
Message 3 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.