]> source.dussan.org Git - jgit.git/commitdiff
Do not use .netrc implicitly if no CredentialsProvider was set 10/33510/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 17 Sep 2014 13:16:55 +0000 (15:16 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 17 Sep 2014 13:16:55 +0000 (15:16 +0200)
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>
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java

index cc07b85474aaf2a3851ed9e1131d60fa71ba9d71..82d1737b96075e6bdce377b533927a9a2d7a48ff 100644 (file)
@@ -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());
        }
 
        /**