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,