FetchCommand now does not set a null credentials provider on
Transport because in this case the default provider is replaced with
null and the default mechanism for providing credentials is not
working.
Change-Id: I44096aa856f031545df39d4b09af198caa2c21f6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
if (tagOption != null)
transport.setTagOpt(tagOption);
transport.setFetchThin(thin);
- transport.setCredentialsProvider(credentialsProvider);
+ if (credentialsProvider != null)
+ transport.setCredentialsProvider(credentialsProvider);
try {
FetchResult result = transport.fetch(monitor, refSpecs);