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

Re: SVN Hook (pre-commit): Commit failed, but why? PHP exit code 255, why?

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Tue, 15 Sep 2009 08:48:44 -0500

On Sep 15, 2009, at 07:57, Daniela Waranie wrote:

> i try to setup a pre-commit hook for subversion.
>
> But i get these messages:
> <MESSAGE>
> Error: Commit failed (details follow):
> Error: Commit blocked by pre-commit hook (exit code 255) with no
> output.
> </MESSAGE>
> when i try to make a commit with TortoiseSVN.
>
> When i have this:
> #!/usr/bin/php5
> <?php
> exit(0);
> ?>
> in my pre-commit script it should have the exit code 0 and add the
> file
> to the repository. But i always get the above error. Why?

Are pre-commit and /usr/bin/php5 executable by the user who is serving
the repository?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395086

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-15 15:49:38 CEST

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.