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

Re: Hooks in 1.1

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2004-10-01 22:05:14 CEST

On 2004-10-01 12:53-0700, David Wheeler wrote:
> Hi All,
>
> I've set up my Subversion 1.1 server to use hooks by:
>
> * Creating pre-commit and post-commit in the hooks directory
> * chmod +x each of them
> * chown to the Apache user
> * sudo -u $APACHE_USER ./post-commit $REPOS $REVISION # works in the
> shell!
>
> But they're not working. Subversion doesn't seem to notice them at all,
> they simply don't execute. I tried restarting Apache, but nothing. Am I
> missing some important configuration somewhere to tell Subversion to
> execute these scripts?

Two things came to my mind:

1) Are you using absolute paths to your executables inside the hook?
   The environment of hook in which the hook gets executed is really
   bare and anemic.

2) If the above didn't help, try create something really simple,
   like

   /bin/date >> /tmp/post-commit.log

   as your post-commit hook and see if it works.

BR, Jani

http://subversion.tigris.org/project_faq.html#hook-environment
http://svnbook.red-bean.com/svnbook-1.1/ch05s02.html#svn-ch-5-sect-2.1

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 1 22:06:02 2004

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.