summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-11-10 14:41:10 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-11-10 15:12:47 -0800
commit17d9c686367888a7f001221ff6c31b802c267e4b (patch)
tree32d7d58d1743b313871359380597da05d5bff486 /org.eclipse.jgit.pgm/src
parentd279bc83b0670b34f7c9237f803b6cc6e02fbc3e (diff)
downloadjgit-17d9c686367888a7f001221ff6c31b802c267e4b.tar.gz
jgit-17d9c686367888a7f001221ff6c31b802c267e4b.zip
Implement command line support for CredentialsProvider
Instead of configuring the JSch session factory, configure a more generic CredentialsProvider, which will work for other transport types such as http, in addition to the existing ssh. Change-Id: I22b13303c17e654ba6720edf4be2ef15fe29537a Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java6
1 files changed, 3 insertions, 3 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 ca3960e97b..62ffd8d9ca 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
@@ -55,7 +55,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.awtui.AwtCredentialsProvider;
import org.eclipse.jgit.errors.TransportException;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryBuilder;
@@ -114,7 +114,7 @@ public class Main {
try {
if (!installConsole()) {
AwtAuthenticator.install();
- AwtSshSessionFactory.install();
+ AwtCredentialsProvider.install();
}
configureHttpProxy();
execute(argv);
@@ -218,7 +218,7 @@ public class Main {
private static boolean installConsole() {
try {
install("org.eclipse.jgit.console.ConsoleAuthenticator");
- install("org.eclipse.jgit.console.ConsoleSshSessionFactory");
+ install("org.eclipse.jgit.console.ConsoleCredentialsProvider");
return true;
} catch (ClassNotFoundException e) {
return false;