summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/unreleased/jc-add-config-options-for-partial-clone.yml5
-rw-r--r--lib/api/internal.rb2
2 files changed, 7 insertions, 0 deletions
diff --git a/changelogs/unreleased/jc-add-config-options-for-partial-clone.yml b/changelogs/unreleased/jc-add-config-options-for-partial-clone.yml
new file mode 100644
index 00000000000..a01d0ab6c94
--- /dev/null
+++ b/changelogs/unreleased/jc-add-config-options-for-partial-clone.yml
@@ -0,0 +1,5 @@
+---
+title: Add allowFilter and allowAnySHA1InWant for partial clones
+merge_request: 32606
+author:
+type: added
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 088ea5bd79a..d6e8b719c85 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -95,6 +95,8 @@ module API
receive_max_input_size = Gitlab::CurrentSettings.receive_max_input_size.to_i
if receive_max_input_size > 0
payload[:git_config_options] << "receive.maxInputSize=#{receive_max_input_size.megabytes}"
+
+ payload[:git_config_options] << "uploadpack.allowFilter=true" << "uploadpack.allowAnySHA1InWant=true" if Feature.enabled?(:gitaly_upload_pack_filter)
end
response_with_status(**payload)