[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: Daniela Waranie <typo3-community_at_gmx.de>
Date: Thu, 17 Sep 2009 10:23:18 +0200

Hi Stein,

> What happens if you execute the script yourself? In the hooks directory, do:
>
> ./pre-commit
>
> and then
>
> echo $?
>
> The latter should also show 255, the exit code received by svn.
>
I got:
-sh: ./pre-commit: /usr/bin/php5^M: bad interpreter: Datei oder
Verzeichnis nicht gefunden

I was wondering.

This leads me to the conclusion that i have used windows line breaks in
this file. After changing that the line breakes to unix style it works.
I get the expected exit code.

Thanks a lot.

Best regards
Daniela Waranie

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

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