From bd67084d2b4d9922b49b7bdd3dbbd3bac9cfb08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Herrmann?= Date: Tue, 26 Jan 2016 18:55:39 +0100 Subject: [PATCH] Prevent ChainingCredentialsProvider from adding delegated providers twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ¼diger Herrmann Change-Id: Icc0907af4fe26877d066db3c813dba37213a3ccc --- .../org/eclipse/jgit/transport/ChainingCredentialsProvider.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java index 3941d3c55..739ddccc7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java @@ -70,8 +70,6 @@ public class ChainingCredentialsProvider extends CredentialsProvider { public ChainingCredentialsProvider(CredentialsProvider... providers) { this.credentialProviders = new ArrayList( Arrays.asList(providers)); - for (CredentialsProvider p : providers) - credentialProviders.add(p); } /**