On Aug 23, 2006, at 18:23, Stromek wrote:
> I am desperate about svn hooks. Subversion is claiming that it
> automatically calls hooks if they are in place (repos/hooks). Take for
> example post-commit. I copied post-commit.tmpl to post-commit, set and
> checked permissions for executing the hook and tried simple test. Here
> is the hook:
>
> #!/bin/sh
>
> /bin/echo "whatever" > "post-commit.log"
>
> I'm using svn protocol and if I perform commit post-commit is not
> triggered. I
> don't know where to check whether svn is really triggering this
> hook. Is
> it possible to turn on some verbose log? Or something else where I can
> see why this hook is not called? Or is there anybody with any idea
> that
> I can try? Thanks!
It probably is triggered, you just haven't told it where to put the
file. Use only absolute paths in hook scripts, or else set $PATH at
the beginning to what you want it to be.
#!/bin/sh
/bin/echo "whatever" > "/tmp/post-commit.log"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 23 19:35:30 2006