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

Re: configurable svn+ssh remote tunnel commands

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 27 Aug 2014 13:01:09 +0000

Daniel Shahaf wrote on Wed, Aug 27, 2014 at 12:40:39 +0000:
> Stefan Sperling wrote on Wed, Aug 27, 2014 at 11:38:07 +0200:
> > As far as I understand the situation, apple is shipping an old svnserve
> > in /usr/bin and the user would prefer running a more recent
> > /usr/local/bin/svnserve.
> > Additionally, overriding per-user environment variables like PATH
> > seems to be a very difficult thing to do. I can't judge if this is
> > really the case since I don't use MacOS at all.
> >
>
> Something like this used to work:
>
> [tunnels]
> ssh = _t() { h=$1; shift; ssh $1 env VAR=val /path/to/svnserve -t "$@"; }; _t

That's slightly wrong - the arguments array would be "$host svnserve -t"
and this configuration passes the "svnserve -t" part through, instead of
discarding it. Revised:

         [tunnels]
         ssh = _t() { local h=$1; shift; shift; shift; ssh "$1" env VAR=val /path/to/svnserve -t "$@"; }; _t

Daniel
Received on 2014-08-27 15:01:49 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.