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

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

From: Daniela Waranie <typo3-community_at_gmx.de>
Date: Tue, 15 Sep 2009 14:57:45 +0200

Hi all,

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?

I tried to run the above pre-commit script from the command line with
the same user (as for the subversion/apache is used) it is processed by
PHP well (saying to me i did not enter the arguments - that`s true, that
was my test about :-).

So, from my point of view, the above path (/usr/bin/php5) is correct and
the pre-hook script is called by subversion, and the interpreter starts
working.

To find the problem i changes the settings in all my php.ini files to:
error_log = /tmp/phperror.log
log_errors = On

But after i did a further commit with the above error message in
tortoiseSVN i can not find a phperror.log in my system (find / -type f
-name "phperror.log") at all. This leads me to the conclusion that no
error occured on php runtime.

Why do i get exit code 255?
Any ideas?

Best regards
Daniela Waranie

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-15 15:31:29 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.