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

Re: post-commit hook completely fails

From: Anthony Lieuallen <arantius_at_gmail.com>
Date: Tue, 06 May 2008 09:51:34 -0400

On 5/5/2008 9:50 PM, Karl Fogel wrote:
> How can you tell it is not running if all it does is invoke /bin/true?

Good point. I've tried sending text to logs in the past is how I know,
to be honest. So to repeat and be clear:

$ cat > post-commit
/bin/date >> /tmp/pc.txt
$ chmod 777 post-commit


Transmitting file data .
Committed revision 5.

Warning: 'post-commit' hook failed with error output:

And on the host:

$ ls -l /tmp/pc.txt
ls: cannot access /tmp/pc.txt: No such file or directory

The file doesn't exist. If I run that script manually, it works. Even
if I run it as the apache user, and with "env -".

Like I said much earlier, if there is no "post-commit" file, I get no
error. But if there is anything there, an empty shell script, a symlink
to /bin/true, anything .. I get the "failed with error output" with no
error output message. Something is failing, but I don't know what, and
I don't know how to diagnose what.

P.S. To others in this thread: echo is a builtin of bash, so since this
is a bash script, the path to echo wouldn't really need to be supplied.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-06 15:52:06 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.