> -----Original Message-----
> From: Robert Dailey [mailto:rcdailey_at_gmail.com]
> Sent: Monday, 25 August 2008 15:26
> To: Ryan Schmidt
> Cc: David Weintraub; svn
> Subject: Re: Problem with python + hook
>
> At the top of "post-commit" file, I put:
>
> #!/usr/bin/python
>
> I also tried:
>
> #!/usr/bin/env python
I suspect it would need to be...
#!/usr/bin/env /usr/bin/python
As far as I can remember the "#!/usr/bin/env ..." idiom is necessary
with Python, and since your hook scripts run with no environment you'll
need to specify where python is.
Cheers
John
>
> 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
>
>
---------------------------------------------------------------------
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:30:42 CEST