From 1c0b2a28ac152b37926513b055d9617a1302b246 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 17 Sep 2014 15:16:55 +0200 Subject: [PATCH] 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 --- .../src/org/eclipse/jgit/transport/TransportHttp.java | 3 --- 1 file changed, 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 cc07b8547..82d1737b9 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()); } /**