소스 검색

[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 년 전
부모
커밋
3ef9f2c764
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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…
취소
저장