[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: No hooks triggered!

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-23 19:33:25 CEST

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.