From 1637c4404867a7cbc904a6ed64ad44053ccf493c Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sun, 27 Aug 2017 15:35:35 +0200 Subject: [PATCH] FetchCommand: pass on CredentialsProvider to submodule fetches When a JGit API command is implemented in terms of other API commands, the child command must "inherit" all relevant settings. Calling configure() ensures that the CredentialsProvider and the connection timeout are propagated correctly. Bug: 515325 Change-Id: I948e306693a9edb7b199a735877413b6eddcfba4 Signed-off-by: Thomas Wolf --- org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java index 485315968a..8f83de79ac 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java @@ -192,6 +192,7 @@ public class FetchCommand extends TransportCommand { .setThin(thin).setRefSpecs(refSpecs) .setDryRun(dryRun) .setRecurseSubmodules(recurseMode); + configure(f); if (callback != null) { callback.fetchingSubmodule(walk.getPath()); } -- 2.39.5