]> source.dussan.org Git - jgit.git/commitdiff
Prevent ChainingCredentialsProvider from adding delegated providers twice 08/65208/1
authorRüdiger Herrmann <ruediger.herrmann@gmx.de>
Tue, 26 Jan 2016 17:55:39 +0000 (18:55 +0100)
committerRüdiger Herrmann <ruediger.herrmann@gmx.de>
Tue, 26 Jan 2016 17:55:39 +0000 (18:55 +0100)
Signed-off-by: Rüdiger Herrmann <ruediger.herrmann@gmx.de>
Change-Id: Icc0907af4fe26877d066db3c813dba37213a3ccc

org.eclipse.jgit/src/org/eclipse/jgit/transport/ChainingCredentialsProvider.java

index 3941d3c5527c78b191bf030c593850ae5ab961f0..739ddccc7340cff7089c47e02e9fcc40cd459d07 100644 (file)
@@ -70,8 +70,6 @@ public class ChainingCredentialsProvider extends CredentialsProvider {
        public ChainingCredentialsProvider(CredentialsProvider... providers) {
                this.credentialProviders = new ArrayList<CredentialsProvider>(
                                Arrays.asList(providers));
-               for (CredentialsProvider p : providers)
-                       credentialProviders.add(p);
        }
 
        /**