If the pre-coomit hook script returns with an exit code
which is not null, subversion will stop the commit and
print the error output of the pre-commit hook script.
The error output is printed below the two lines you got.
So for me it looks as if your hook script returns an exit
code which is not null but doesn't print anything to STDERR.
And please be aware that "For security reasons, the
Subversion repository executes hook scripts with an empty
environment—that is, no environment variables are set at all,
not even $PATH or %PATH%." (from the Subversion book)
I hope this will help you to solve your problem.
Mathias
Claudio Ochoa <claudio@fi.upm.es> wrote:
> Hi, I am trying to setup pre-commit hooks, so I grabbed the
> commit-access-control.pl and commit-access-control.cfg files from svn,
> set up commit-access-control.cfg correspondingly, and executed
> commit-access-control.pl until I was sure there were no perl errors.
>
> But then, when doing a commit in the rep, all I get is
>
> svn: Commit failed (details follow):
> svn: 'pre-commit' hook failed with error output:
>
> but no details of the error are shown, so it is really hard to debug it.
> Do you know what can I do?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 27 14:16:05 2005