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

Re: Problem with python + hook

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Sun, 24 Aug 2008 22:25:40 -0500

At the top of "post-commit" file, I put:

#!/usr/bin/python

I also tried:

#!/usr/bin/env python

None of these have had any effect.

On Sun, Aug 24, 2008 at 10:18 PM, Ryan Schmidt
<subversion-2008c_at_ryandesign.com> wrote:
>
> On Aug 24, 2008, at 22:12, Robert Dailey wrote:
>
>> I tried your hints but I'm still not getting anything. I'm assuming
>> the errors will appear during the commit process on the client,
>> however I have seen no errors. I don't think that subversion is even
>> trying to execute it... I've set the chmod to 777, and it still won't
>> work.
>
> The output of a post-commit hook, whether to stdout or stderr, is discarded.
> You won't ever see it. You should write any relevant information to your own
> logfile if desired.
>
>
>> Anything else I can try?
>
>
>>> On Sun, Aug 24, 2008 at 5:33 PM, Robert Dailey wrote:
>>>>
>>>
>>>> call( "svn", "update", "--non-interactive", "/srv/http/website" )
>
>
> You need to specify the absolute path to the svn binary (and any other
> binaries you want to use) since hooks run with an empty environment for
> security reasons.
>
>
>

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