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