From c3fbd2cdf94e0d03453f666d1fea68c21d1be4bd Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Mon, 14 Feb 2022 10:44:51 +0100 Subject: [PATCH] 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 --- org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java | 1 + 1 file changed, 1 insertion(+) 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 aa5a63499..dc681bad0 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 Iterable call() throws GitAPIException, InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException { checkCallable(); + setCallable(false); ArrayList pushResults = new ArrayList<>(3);