From: Han-Wen Nienhuys Date: Tue, 31 Jan 2023 22:25:19 +0000 (+0100) Subject: UploadPack: advertise object-info command if enabled X-Git-Tag: v6.5.0.202302221508-m3~3^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97e8b4cc71e3e0f5081e5a426874bdcece972483;p=jgit.git UploadPack: advertise object-info command if enabled Change-Id: Iad8e5b5f4fdd84bd275eb19ee0d01eb6986d79f2 --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index a7ce1d7c21..38c7cb94bb 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1386,6 +1386,9 @@ public class UploadPack implements Closeable { if (transferConfig.isAllowReceiveClientSID()) { caps.add(OPTION_SESSION_ID); } + if (transferConfig.isAdvertiseObjectInfo()) { + caps.add(COMMAND_OBJECT_INFO); + } return caps; }