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

[Subclipse-users] Using ssh-agent via svnClientAdapter and svn console client, including patch

From: Florian Voswinkel <florian.voswinkel_at_getit.de>
Date: Wed, 20 Aug 2008 18:02:24 +0200

Hi everyone,

it is not possible using JavaHL in my current project and I was sick of
entering my SSH-Key passphrase on and on. I saw, there is plenty of
operation system specific stuff in CommandLine.java for setting up the
environment, the SVN-Client is executed in.
So, I would like to see one more env var being transmitted for the unix
SSH client: SSH_AUTH_SOCK.

Below is my diff for CommandLine.java, Rev. 3041 (checked out today at
Rev. 3970). It works for me, I don't see why it should break anything.
Would be nice if this patch would make it into your code.

Thanks so far,
Florian

~$ diff CommandLine.java CommandLineNew.java
122a123
> final String sshAuthSock =
CmdLineClientAdapter.getEnvironmentVariable("SSH_AUTH_SOCK");
129a131,132
> if (sshAuthSock != null)
> i++;
152a156,159
> if (sshAuthSock != null) {
> env[i] = "SSH_AUTH_SOCK=" + sshAuthSock;
> i++;
> }

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-08-20 18:03:45 CEST

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

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