[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:58:44 CEST

Claudio Ochoa <claudio@fi.upm.es> wrote:

> 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.

Hmmmm.
Perhaps you haven't installed svnlook in /usr/local/bin as
the example hook script assumes (but then you should also
get problems with running the perl script manually).

You could also try to run the hook script manually and look what
it will tell you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 27 15:03:09 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.