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

Re: pre-commit hooks does not show any output

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-10-27 14:11:15 CEST

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.


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

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.