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

Re: How to enable hooks?

From: Sean Laurent <sean_at_neuronfarm.com>
Date: 2004-08-31 17:59:12 CEST

On Tuesday 31 August 2004 09:57 am, Dzmitry Lazerka wrote:
> Hello users,
>
> After I copied 'pre-revprop-change.tmpl' -> 'pre-revprop-change' in
> repository folder 'hooks/' and get error:
> ------------
> 'pre-revprop-change' hook failed with error output:
>
> ------------
>
> Repository on FreeBSD, accessing through 'svn://', version -- 1.0.5
> (r9954)
>
> PS: I tried to play with file 'pre-revprop-change' like making it
> executeble, clearing its content, write "exit 0" and so on, but
> it's all the same...
>
> What can I do to enable changing log message?

Sounds like a permissions problem. What user is svnserve running as? The
hooks need to be executable by this user. Either this user should own the
files or the user should be a member of a group which owns the files. For
example, on my system, the subversion daemon runs as a user in the "svn"
group. My pre-rev-prop-change script is owned by root:svn and has the
set-group-id bit set.

-rwxrws--- 1 root svn 2039 Jun 29 18:03 pre-revprop-change*

The hook script should exit with a zero ("exit 0") for success or non-zero
("exit 1") for failure. Hope this helps.

-Sean Laurent

------------------------------
The only difference between a rut and a grave is the depth.
------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 31 17:59:48 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.