Merge "Fix ChainingCredentialsProvider"
This commit is contained in:
commit
2f0b675a71
|
@ -113,9 +113,15 @@ public boolean get(URIish uri, CredentialItem... items)
|
|||
throws UnsupportedCredentialItem {
|
||||
for (CredentialsProvider p : credentialProviders) {
|
||||
if (p.supports(items)) {
|
||||
p.get(uri, items);
|
||||
if (isAnyNull(items))
|
||||
if (!p.get(uri, items)) {
|
||||
if (p.isInteractive()) {
|
||||
return false; // user cancelled the request
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (isAnyNull(items)) {
|
||||
continue;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue