Преглед на файлове

PushCommand: do not set a null credentials provider

PushCommand 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.

Bug: 336023
Change-Id: I7a7a9221afcfebe2e1595a5e59641e6c1ae4a207
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
tags/v0.11.1
Jens Baumgart преди 13 години
родител
ревизия
29ed09a44f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java

+ 2
- 1
org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java Целия файл

@@ -139,7 +139,8 @@ public class PushCommand extends GitCommand<Iterable<PushResult>> {
if (receivePack != null)
transport.setOptionReceivePack(receivePack);
transport.setDryRun(dryRun);
transport.setCredentialsProvider(credentialsProvider);
if (credentialsProvider != null)
transport.setCredentialsProvider(credentialsProvider);

final Collection<RemoteRefUpdate> toPush = transport
.findRemoteRefUpdatesFor(refSpecs);

Loading…
Отказ
Запис