Browse Source

[pgm] Use Apache sshd by default

Change-Id: I2a00059415fc2674469bc921827362801583af83
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
tags/v5.11.0.202102031030-m2
Thomas Wolf 3 years ago
parent
commit
3ef9f2c764
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java

+ 2
- 2
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java View File

@@ -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;
}

Loading…
Cancel
Save