[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: Claudio Ochoa <claudio_at_fi.upm.es>
Date: 2005-10-27 14:49:42 CEST

Mathias Weinert wrote:
> 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.

 From the hook script I am calling this script

http://svn.collab.net/repos/svn/branches/1.2.x/tools/hook-scripts/commit-access-control.pl.in

I am not a Perl expert, but given that the pre-commit.tmpl already has
the lines

# Check that the author of this commit has the rights to perform
# the commit on the files and directories being modified.
commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1

I thought it was going to work with no changes to the pl file. All I've
done is to configure commit-access-control.cfg, and to make sure that
commit-access-control.pl does not throw any syntactic errors.

---------------------------------------------------------------------
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:54:44 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.