From 4efc6a396af3f5a112dc87e708d339b51f376c1d Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sun, 26 Dec 2021 14:36:48 +0100 Subject: sshd: support IdentityAgent config Handle the 'none' value, and change the value to select Pageant to something that looks like an absolute UNC path name to avoid it's handled as an relative path name. Bug: 577053 Change-Id: I4ccf047abbc1def50e2782319e4fa7c744069401 Signed-off-by: Thomas Wolf --- .../jgit/internal/transport/ssh/OpenSshConfigFileTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'org.eclipse.jgit.test/tst/org/eclipse') diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFileTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFileTest.java index 11741b41aa..9c5cd16f99 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFileTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/ssh/OpenSshConfigFileTest.java @@ -562,6 +562,14 @@ public class OpenSshConfigFileTest extends RepositoryTestCase { h.getValue(SshConstants.IDENTITY_AGENT)); } + @Test + public void testIdentityAgentNone() throws Exception { + config("Host orcz\nIdentityAgent none\n"); + HostConfig h = lookup("orcz"); + assertEquals(SshConstants.NONE, + h.getValue(SshConstants.IDENTITY_AGENT)); + } + @Test public void testNegativeMatch() throws Exception { config("Host foo.bar !foobar.baz *.baz\n" + "Port 29418\n"); -- cgit v1.2.3