diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2014-09-17 15:16:55 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-09-17 15:16:55 +0200 |
commit | 1c0b2a28ac152b37926513b055d9617a1302b246 (patch) | |
tree | 029b7d42187d30e0ca6ea8ded492febadafb6191 | |
parent | 66559681dd38a99a58a696052a527bd8b1f2f782 (diff) | |
download | jgit-1c0b2a28ac152b37926513b055d9617a1302b246.tar.gz jgit-1c0b2a28ac152b37926513b055d9617a1302b246.zip |
Do not use .netrc implicitly if no CredentialsProvider was set
Do not silently set the NetRCCredentialsProvider if no
CredentialsProvider was set explicitly since applications may want to
have full control which provider should be used.
Bug: 444338
Change-Id: Ie096983bc1caa90443a504d302bfea8f2d26ab9e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java index cc07b85474..82d1737b96 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java @@ -264,9 +264,6 @@ public class TransportHttp extends HttpTransport implements WalkTransport, } http = local.getConfig().get(HTTP_KEY); proxySelector = ProxySelector.getDefault(); - - if (getCredentialsProvider() == null) - setCredentialsProvider(new NetRCCredentialsProvider()); } /** |