Browse Source

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>
tags/v3.5.0.201409260305-r
Matthias Sohn 9 years ago
parent
commit
1c0b2a28ac

+ 0
- 3
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java View 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());
}

/**

Loading…
Cancel
Save