From 4baed92559bc38f421fb8ea3dd6e177db886d780 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Wed, 7 Dec 2022 20:33:38 +0100 Subject: fix: Fix broken pushes to tickets The update of JGit broke pushes to tickets. The ReceiveCommand now requires all three arguments, oldId, newId and name, to be not null. The ticket code handling pushes to tickets left name and old id as null in certain cases. This is fixed by always providing values. --- src/main/java/com/gitblit/models/TicketModel.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/gitblit/models/TicketModel.java') diff --git a/src/main/java/com/gitblit/models/TicketModel.java b/src/main/java/com/gitblit/models/TicketModel.java index 65e29dc0..a60cdc44 100644 --- a/src/main/java/com/gitblit/models/TicketModel.java +++ b/src/main/java/com/gitblit/models/TicketModel.java @@ -1163,6 +1163,7 @@ public class TicketModel implements Serializable, Comparable { private static final long serialVersionUID = 1L; + public long ticketId; public int number; public int rev; public String tip; -- cgit v1.2.3