summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2022-02-14 10:44:51 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2022-02-14 10:44:51 +0100
commitc3fbd2cdf94e0d03453f666d1fea68c21d1be4bd (patch)
tree919061cbe13579b214fb397aa47b0526aae06fcb
parentdb2d379c9ccb90f6f958da85d4d72e2567348b7e (diff)
downloadjgit-c3fbd2cdf94e0d03453f666d1fea68c21d1be4bd.tar.gz
jgit-c3fbd2cdf94e0d03453f666d1fea68c21d1be4bd.zip
Prevent that an instance of PushCommand is reused
We checked if the command instance is called but missed to set the flag tracking if it actually was used. Change-Id: I0f9fb85c47945a4d91eab01ec5e1abc1ab83332a
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
index aa5a63499c..dc681bad06 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java
@@ -98,6 +98,7 @@ public class PushCommand extends
InvalidRemoteException,
org.eclipse.jgit.api.errors.TransportException {
checkCallable();
+ setCallable(false);
ArrayList<PushResult> pushResults = new ArrayList<>(3);