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

Re: Hook script not running?

From: Pim Bliek <pim_at_frog.nl>
Date: 2005-11-08 15:44:08 CET


Just some random thoughts on this one:

Since your pre-commit hook tries to write to the file 'log'... has the
apache user also write access to the directory? If it cannot write it..
it won't happen.

Also, have a look at the logs (apache errorlog if you access SVN via

Last but not least, try a script like this:
exit 1

If your commit fails with exit level 1, you can be sure that the script
is fired of in the first place. If so, you can start building and
debugging the script you intend to run as a pre-commit.

Good luck!

Stephen Gross wrote:

>I'm trying to get started with hook scripts. I have a file called pre-commit
>that looks like this:
>echo hi >> log
>exit 0
>The file 'pre-commit' is executable (by all groups) and owned by the http
>daemon (apache). When I commit changes to my svn tree, however, the commit
>script does not appear to run. That is, the file 'log' should be created by
>the script but is not. Any ideas?
>Stephen Gross
>Case Western School of Medicine
>Cleveland, OH
>"By Grabthar's hammer, by the sons of Worvan, you shall be avenged." - Dr.
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 8 15:49:51 2005

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.