diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2009-10-31 19:42:01 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-11-02 17:55:55 -0800 |
commit | 27a497f83e683d384d379ee75570f8c25a7aa624 (patch) | |
tree | e2dccf16cb25c1cf8d738f011cbc9543ac3f1747 /org.eclipse.jgit.pgm | |
parent | 9108035763f7d9504671bc9bbddfb467100095e7 (diff) | |
download | jgit-27a497f83e683d384d379ee75570f8c25a7aa624.tar.gz jgit-27a497f83e683d384d379ee75570f8c25a7aa624.zip |
Move AWT based SSH authenticator to ui bundle
This way SWT based applications don't wind up loading this AWT
based code when using SSH.
Change-Id: I9080f3dd029c2a087e6b687480018997cc5c5d23
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java index 7c74ee5480..3579b65e31 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java @@ -51,6 +51,7 @@ import java.util.ArrayList; import java.util.List; import org.eclipse.jgit.awtui.AwtAuthenticator; +import org.eclipse.jgit.awtui.AwtSshSessionFactory; import org.eclipse.jgit.errors.TransportException; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.pgm.opt.CmdLineParser; @@ -88,6 +89,7 @@ public class Main { final Main me = new Main(); try { AwtAuthenticator.install(); + AwtSshSessionFactory.install(); configureHttpProxy(); me.execute(argv); } catch (Die err) { |