]> source.dussan.org Git - jgit.git/commitdiff
UploadPack: advertise object-info command if enabled 99/199699/1
authorHan-Wen Nienhuys <hanwen@google.com>
Tue, 31 Jan 2023 22:25:19 +0000 (23:25 +0100)
committerHan-Wen Nienhuys <hanwen@google.com>
Wed, 1 Feb 2023 09:52:33 +0000 (10:52 +0100)
Change-Id: Iad8e5b5f4fdd84bd275eb19ee0d01eb6986d79f2

org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

index a7ce1d7c21ccde974d43fc72a8b13ddad6ac6ccc..38c7cb94bb579176779bc58f6baa15fc1c7866d7 100644 (file)
@@ -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;
        }