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

Re: Post-commit script !!

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Fri, 12 Sep 2008 01:16:23 -0500

On Sep 12, 2008, at 01:00, Himanshu Raina wrote:

> I have a post-commit script which just doesn't seem to get invoked
> whenever a commit is done. The repository path is
>
> /usr/loca/svn/ServerAdmins with ownership and permissions as given
> below
>
> drwxrwx--- 7 svn apache 4096 Sep 3 2007 /usr/local/svn/
> ServerAdmins/
>
> My apache runs as follows
> root 2663 1 0 Sep03 ? 00:00:00 /usr/local/apache2/
> bin/httpd -k start
> apache 2664 2663 0 Sep03 ? 00:01:04 /usr/local/apache2/
> bin/httpd -k start
> apache 2667 2663 0 Sep03 ? 00:01:14 /usr/local/apache2/
> bin/httpd -k start
>
> What could be wrong ?

Many things.

Is the script executable?

Does the script run properly from the command line?

Are you making sure to use absolute paths to everything (executables,
data files, working copies) in the hook script? You must do this,
because Apache (or svnserve) will execute the hook with an empty
environment (no $PATH).

What is the contents of the hook script?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-12 08:16:48 CEST

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.