did you put a "return 0" at the end of your script
From: Kostas Rondinoulis [mailto:email@example.com]
Sent: Thursday, 11 October 2007 8:25 AM
To: Larry Martell
Subject: RE: Hook Script problem with no error output
I don't understand, do you mean to send my echo command to stderr ?
Something like /bin/echo "Script is running" >&2 >> /tmp/svn-test.log ?
I have tried that and it didn't work.
> Date: Wed, 10 Oct 2007 15:33:43 -0600
> From: firstname.lastname@example.org
> To: email@example.com
> Subject: Re: Hook Script problem with no error output
> CC: firstname.lastname@example.org
> On 10/10/07, Kostas Rondinoulis <email@example.com> wrote:
> > I am very surprised why my hooks script don't work.
> > I just made a pre-commit script with one line:
> > /bin/echo "Script is running" >> /tmp/svn-test.log
> > I am not using any enviroment variables, so my script works
perfectly in an
> > empty enviroment and the permissions are set properly.
> > I have tested with env - ./pre-commit and the script works
> > have tried to run the server in the foreground, but it doesn't give
> > output there either.
> > When I try to commit, I get the following error:
> > [rondin@webdev ~/html]$ svn ci -m "testing" .
> > Deleting test5
> > Adding test6
> > subversion/libsvn_client/commit.c:865: (apr_err=165001)
> > svn: Commit failed (details follow):
> > subversion/libsvn_repos/hooks.c:135: (apr_err=165001)
> > svn: 'pre-commit' hook failed with error output:
> > I am running svnserve, version 1.4.4 (r25188).
> > Is there any way to find out why the scripts are not working and why
> > getting a blank error output?
> Try writing to stderr instead of stdout.
Explore the seven wonders of the world Learn more!
This email and any attachments are confidential. They may also be subject to copyright.
If you are not an intended recipient of this email please immediately contact us by replying
to this email and then delete this email.
You must not read, use, copy, retain, forward or disclose this email or any attachment.
We do not accept any liability arising from or in connection with unauthorised use or disclosure
of the information contained in this email or any attachment.
We make reasonable efforts to protect against computer viruses but we do not accept liability
for any liability, loss or damage caused by any computer virus contained in this email.
Received on Thu Oct 11 03:39:25 2007