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

Re: post-commit isn't being executed

From: John Szakmeister <john_at_szakmeister.net>
Date: 2004-03-09 10:52:18 CET

On Monday 08 March 2004 19:12, Jim Moore wrote:
> Here's what I have
>
> [root@hroastsrc01 hooks]# ls -ld post-commit .
> drwxr-sr-x 2 apache apache 4096 Mar 8 19:02 .
> -rwxr-xr-x 1 apache apache 25 Mar 8 19:02 post-commit
> [root@hroastsrc01 hooks]# cat post-commit
> #!/bin/sh
> /bin/touch ran
> [root@hroastsrc01 hooks]#
>
> Unfortunately, when I commit something, nothing happens (ie, "ran" isn't
> created). (Of course, when I do "sudo -u apache ./post-commit" then the
> file is created. Just not from mod_dav_svn.) I've stripped it down as
> much as I can, and searched the lists and Google, but can't figure out
> what's wrong. Nothing's written to the log file except the normal DAV
> stuff.
>
> Any ideas?

IIRC, the hook scripts aren't necessarily run out of the repository's hooks/
directory. Try touching with an absolute path in a directory that is
writable by the apache user.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 9 10:54:58 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.