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

Re: Server Hooks not working

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-05-20 13:51:56 CEST

On Fri, 20 May 2005, Florian Engelhardt wrote:

> On Fri, 20 May 2005 06:31:23 -0400
> John Szakmeister <john@szakmeister.net> wrote:
>
> svn@svn hooks $ l pre-commit
> -rwxr-xr-x 1 svn svn 32 May 20 13:29 pre-commit
>
> svn@svn hooks $ cat pre-commit
> #!/bin/bash
> echo "hello"
> exit 0
>
> svn@svn hooks $ /usr/bin/env -i pre-commit
> hello
>
> svn@svn hooks $ echo $?
> 0
>
>
> And that happens on the client side:
>
> florianen@workplaces api $ svn ci -m 'testing hooks'
> Sending api/func.data.php
> Transmitting file data .svn: Commit failed (details follow):
> svn: 'pre-commit' hook failed with error output:
>
> The script is executable, it belongs to the user svn in the group svn.
> The svnserve daemon runs as user svn in group svn.
>

Can you try committing locally with an file:// URL running as the same
user as svnserve? If you get the same error, you could strace the svn
command and see what error really occurs. (YOu can trace svnserve as well,
but it is a little more complicated since it forks a new process per
connection.)

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 20 13:45:10 2005

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