RE: Re: Post-commit script !!
From: Maurer, Hermann <Hermann.Maurer_at_gft.com>
Date: Fri, 12 Sep 2008 09:39:56 +0200
Because the Apache (or svnserve) tries to start a process with this name and doesn't look for any other :-)
Hermann Maurer
From: Himanshu Raina [mailto:raina_himanshu_at_yahoo.com]
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:
The script executes properly when run through command line. The post-commit.sh looks like this
#!/bin/sh
REPOS="$1"
/usr/local/svn/ServerAdmins/hooks/commit-email.pl "$REPOS" "$REV" raina_himanshu_at_yahoo.com
/usr/local/svn/ServerAdmins/hooks/commit-email.pl contains the actualt svnlook as well.
regards
--- On Fri, 12/9/08, Ryan Schmidt <subversion-2008c_at_ryandesign.com> wrote:
>
> 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
> 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
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
________________________________________
|
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.