Re: Problem with python + hook
From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sun, 24 Aug 2008 22:46:47 -0500
On Aug 24, 2008, at 22:30, John Niven wrote:
>> At the top of "post-commit" file, I put:
Asking the env program where python is won't work since as I said the
#!/usr/bin/python
> As far as I can remember the "#!/usr/bin/env ..." idiom is necessary
Oh it is? Well I don't know Python. I'm sure the env idiom is useful
http://svn.collab.net/repos/svn/tags/1.5.1/tools/dist/write-
So I doubt it's absolutely required.
>> None of these have had any effect.
Did you also change to calling the absolute path of svn? See below.
>>>>>> call( "svn", "update", "--non-interactive", "/srv/http/website" )
Call svn with its absolute path as well, presumably:
call( "/usr/local/bin/svn", "update", "--non-interactive", "/srv/http/
Or wherever Subversion actually is on your system.
Capture all error and regular output from this process and write it
If that doesn't help, try a simple post-commit hook which just writes
---------------------------------------------------------------------
|
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.