You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to allow clone filters (upload pack filters), one have to manually set the option via git config, as described on the docs.
To be better, there should be option on app.ini named ALLOW_CLONE_FILTERS (or ALLOW_UPLOAD_PACK_FILTERS) which toggle git config allowpack.togglefilter globally, defaulted to false (which disallow filters). To allow filters, set the option to true.
This option can be overridden on per-repo basis.
Note that clone filters requires Git version 2.22 or later. The option above must be hardcoded to false for instances running Git versions lower than the required.
The text was updated successfully, but these errors were encountered:
@zeripath i think i propose this issue for convenience. It is more convenient to have app.ini option that abstracts actual git config than using git config directly
…stogram` by default (#24860)
Close#13454 , Close#23255, Close#14697 (and maybe more related
issues)
Many users have the requirement to customize the git config. This PR
introduces an easy way: put the options in Gitea's app.ini
`[git.config]`, then the config options will be applied to git config.
And it can support more flexible default config values, eg: now
`diff.algorithm=histogram` by default. According to:
https://stackoverflow.com/a/32367597/4754037 , `histogram diff` is
efficient and doesn't like to cause server-side problems.
---------
Co-authored-by: silverwind <[email protected]>
Co-authored-by: KN4CK3R <[email protected]>
Co-authored-by: Giteabot <[email protected]>
Description
Currently to allow clone filters (upload pack filters), one have to manually set the option via
git config
, as described on the docs.To be better, there should be option on
app.ini
namedALLOW_CLONE_FILTERS
(orALLOW_UPLOAD_PACK_FILTERS
) which toggle git configallowpack.togglefilter
globally, defaulted to false (which disallow filters). To allow filters, set the option to true.This option can be overridden on per-repo basis.
Note that clone filters requires Git version 2.22 or later. The option above must be hardcoded to false for instances running Git versions lower than the required.
The text was updated successfully, but these errors were encountered: