summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2017-08-27 15:35:35 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2017-08-27 16:37:43 +0200
commit1637c4404867a7cbc904a6ed64ad44053ccf493c (patch)
tree64730d4da6dd7309e40e457301b68e62ec53c2c0 /org.eclipse.jgit
parentd031b6466757ddaa3ef453d4b9d385b0d35d7ab1 (diff)
downloadjgit-1637c4404867a7cbc904a6ed64ad44053ccf493c.tar.gz
jgit-1637c4404867a7cbc904a6ed64ad44053ccf493c.zip
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 <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java1
1 files changed, 1 insertions, 0 deletions
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<FetchCommand, FetchResult> {
.setThin(thin).setRefSpecs(refSpecs)
.setDryRun(dryRun)
.setRecurseSubmodules(recurseMode);
+ configure(f);
if (callback != null) {
callback.fetchingSubmodule(walk.getPath());
}