From 3ef9f2c764587cfade1fbd28335230b3ae8ea98f Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Fri, 15 Jan 2021 12:45:35 +0100 Subject: [pgm] Use Apache sshd by default Change-Id: I2a00059415fc2674469bc921827362801583af83 Signed-off-by: Thomas Wolf --- org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java index 0b02dd148d..f70e72d434 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java @@ -63,7 +63,7 @@ public abstract class TextBuiltin { private boolean help; @Option(name = "--ssh", usage = "usage_sshDriver") - private SshDriver sshDriver = SshDriver.JSCH; + private SshDriver sshDriver = SshDriver.APACHE; /** * Input stream, typically this is standard input. @@ -220,7 +220,7 @@ public abstract class TextBuiltin { SshdSessionFactory factory = new SshdSessionFactory( new JGitKeyCache(), new DefaultProxyDataFactory()); Runtime.getRuntime() - .addShutdownHook(new Thread(() -> factory.close())); + .addShutdownHook(new Thread(factory::close)); SshSessionFactory.setInstance(factory); break; } -- cgit v1.2.3