You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vincent Lefevre <vi...@vinc17.net> on 2011/05/25 01:35:15 UTC
SVN_SSH and arguments
Hi,
It seems that arguments in SVN_SSH are ignored. I have tested with:
Nokia-N900-02-8:~> echo $SVN_SSH
/home/user/scripts/ssh -i /home/user/.ssh/id_rsa-svn
but a ps -aef after a "svn ls svn+ssh://mysvn" gives:
19110 user 6228 S zsh /home/user/scripts/ssh mysvn svnserve -t
I can add
ssh = /home/user/scripts/ssh -i /home/user/.ssh/id_rsa-svn
to the .subversion/config file and it works as expected.
Nokia-N900-02-8:~> svn --version
svn, version 1.6.16 (r1073529)
compiled May 22 2011, 02:59:15
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
--
Vincent Lefèvre <vi...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Re: SVN_SSH and arguments
Posted by Vincent Lefevre <vi...@vinc17.net>.
On 2011-05-25 02:45:39 +0300, Daniel Shahaf wrote:
> Works for me:
>
> % SVN_SSH='perl -e "exec qw/ssh/, @ARGV"' $svn info svn+ssh://`hostname`//tmp/svn/r1 | grep URL
> URL: svn+ssh://d3/tmp/svn/r1
OK, I've found the problem. I'm using a svn wrapper (as a workaround
to a svn bug), which is a zsh script, and as zsh sources the .zshenv
file, the SVN_SSH variable gets rewritten before the real svn is
called. :(
--
Vincent Lefèvre <vi...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Re: SVN_SSH and arguments
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Vincent Lefevre wrote on Wed, May 25, 2011 at 01:35:15 +0200:
> Hi,
>
> It seems that arguments in SVN_SSH are ignored. I have tested with:
>
> Nokia-N900-02-8:~> echo $SVN_SSH
> /home/user/scripts/ssh -i /home/user/.ssh/id_rsa-svn
>
Works for me:
% SVN_SSH='perl -e "exec qw/ssh/, @ARGV"' $svn info svn+ssh://`hostname`//tmp/svn/r1 | grep URL
URL: svn+ssh://d3/tmp/svn/r1
> but a ps -aef after a "svn ls svn+ssh://mysvn" gives:
>
> 19110 user 6228 S zsh /home/user/scripts/ssh mysvn svnserve -t
>
> I can add
>
> ssh = /home/user/scripts/ssh -i /home/user/.ssh/id_rsa-svn
>
> to the .subversion/config file and it works as expected.
>
> Nokia-N900-02-8:~> svn --version
> svn, version 1.6.16 (r1073529)
> compiled May 22 2011, 02:59:15
>
> Copyright (C) 2000-2009 CollabNet.
> Subversion is open source software, see http://subversion.apache.org/
> This product includes software developed by CollabNet (http://www.Collab.Net/).
>
> The following repository access (RA) modules are available:
>
> * ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
> - handles 'http' scheme
> - handles 'https' scheme
> * ra_svn : Module for accessing a repository using the svn network protocol.
> - handles 'svn' scheme
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' scheme
>
> --
> Vincent Lefèvre <vi...@vinc17.net> - Web: <http://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)