RE: Re: Post-commit script !!
From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Fri, 12 Sep 2008 13:06:55 +0530 (IST)
Okay it might sound stupid but why is that ? I mean why would giving an extension of .sh not make the script work?
Thanks !!
--- On Fri, 12/9/08, Maurer, Hermann <Hermann.Maurer_at_gft.com> wrote:
Hi,
the name of the script must be
Regards,
Hermann Maurer
From: Himanshu Raina
Sent: Friday, September 12, 2008 9:20 AM
To: Ryan Schmidt
Cc: users_at_subversion.tigris.org
Subject: Re: Post-commit script !!
The script executes properly when run through command line. The
#!/bin/sh
REPOS="$1"
REV="$2"
/usr/local/svn/ServerAdmins/hooks/commit-email.pl "$REPOS"
/usr/local/svn/ServerAdmins/hooks/commit-email.pl contains the actualt
regards
Himanshu Raina
--- On Fri, 12/9/08, Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Subject: Re: Post-commit script !!
To: raina_himanshu_at_yahoo.com
Cc: users_at_subversion.tigris.org
Date: Friday, 12 September, 2008, 11:46 AM
> 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
Unlimited
|
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.