[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: Robert Mohr <lists_at_mohrr.net>
Date: Fri, 24 Apr 2009 18:54:46 -0400

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.

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].
Received on 2009-04-25 01:02:09 CEST

This is an archived mail posted to the Subversion Users mailing list.