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

Re: pre-commit hooks to detect subversion access protocol

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 24 Apr 2009 20:32:16 -0400

On Fri, Apr 24, 2009 at 18:54, Robert Mohr <lists_at_mohrr.net> wrote:
> Sorry, should have replied to the list.
>
> SSH sets a couple of environment variables:  SSH_CLIENT and
> SSH_CONNECTION (and, in an interactive mode, SSH_TTY).  You could
> check for the presence of those.
>
> I've never checked, but I bet Apache sets an environment variable or
> two.  If not, you should look at mod_env.
>
> I don't know how you could detect the svn protocol except for it not
> being one of the above.

Subversion hooks execute with a nearly-empty environment. There's only
maybe 2 or 3 environment variables set.

> On Fri, Apr 24, 2009 at 6:35 PM, Murli Varadachari
> <mvaradachari_at_facebook.com> wrote:
>>
>> Is it possible for pre-commit hooks to detect the access protocol  used by
>> engineer [ svn, http or svn+ssh ] to execute the commit operation?
>>
>> Is there a way to get this info on the server side.
>>
>> Cheers
>> Murli
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1898878
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1900442

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-25 02:33:44 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.