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

Re: passing cmd-line params from svn commit to post-commit script

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2007-06-27 13:38:17 CEST

On 27 Jun 2007, at 11:35, Tommy Nordgren wrote:

>
> On 27 jun 2007, at 11.48, Matt Sickler wrote:
>
>> Except the ENV is *completely* cleared.
>>
> Are you sure? I can't find any code in the subversion source that
> assigns to environ.
> However, setting environment variables certainly only work with
> file url's.

If you examine the code used by the function that runs the hook,
you'll find that (on Unix at least) apr uses execve(2) to execute the
hook with a null environment pointer. environ is simply ignored.

>
> ------------------------------------------------------
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
> tommy.nordgren@comhem.se
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 27 13:41:34 2007

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.