Commit 34e1b619 authored by Christian Couder's avatar Christian Couder

Enable uploadpack filters by default

Let's enable the 'gitaly_upload_pack_filter' feature flag
by default to let people test partial clone out of the box.

They can still turn it off manually if they want to disable
it in case of abuse, performance issue or policy decision.

Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2553
Part of: https://gitlab.com/gitlab-org/git/-/issues/56
parent 8e4aca65
---
title: Enable uploadpack filters by default
merge_request: 29787
author:
type: added
......@@ -80,7 +80,7 @@ module API
if receive_max_input_size > 0
payload[:git_config_options] << "receive.maxInputSize=#{receive_max_input_size.megabytes}"
if Feature.enabled?(:gitaly_upload_pack_filter, project)
if Feature.enabled?(:gitaly_upload_pack_filter, project, default_enabled: true)
payload[:git_config_options] << "uploadpack.allowFilter=true" << "uploadpack.allowAnySHA1InWant=true"
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment