aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2023-01-31 23:25:19 +0100
committerHan-Wen Nienhuys <hanwen@google.com>2023-02-01 10:52:33 +0100
commit97e8b4cc71e3e0f5081e5a426874bdcece972483 (patch)
treed998c9eab489f520c9c5fe9fb3bc140ffdc68c50 /org.eclipse.jgit
parent66b871b777c1a58337e80dd03db68bb76b145a93 (diff)
downloadjgit-97e8b4cc71e3e0f5081e5a426874bdcece972483.tar.gz
jgit-97e8b4cc71e3e0f5081e5a426874bdcece972483.zip
UploadPack: advertise object-info command if enabled
Change-Id: Iad8e5b5f4fdd84bd275eb19ee0d01eb6986d79f2
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java3
1 files changed, 3 insertions, 0 deletions
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;
}