[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: Wouter van der Horst <w.vanderhorst_at_gmail.com>
Date: Tue, 6 May 2008 18:00:47 +0200

Just to rule out the obvious: Are you sure the post-commit hook
you are looking at is the post-commit hook that's being run? In other words,
are you looking in the right repository?

On Tue, May 6, 2008 at 3:51 PM, Anthony Lieuallen <arantius_at_gmail.com> wrote:
> 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/bash
> /bin/date >> /tmp/pc.txt
>
> /bin/true
> $ chmod 777 post-commit
>
> Still:
>
> 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
>
>

---------------------------------------------------------------------
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 18:01:13 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.