Disable partial clone feature in Gitea

Gitea 1.16 added partial clone support, but the clone filters pip
tries to apply (--filter=blob:none) don't work well when combined
with older cgit clients and lead to errors like "Server does not
allow request for unadvertised object" or "protocol error: bad pack
header".

Explicitly disable this feature server-side for now, so that clients
will fall back to making full clones.

Change-Id: Ia86394d5176c28567bf67b60578aadde6629c775
Depends-On: https://review.opendev.org/834196
changes/74/834174/2
Jeremy Stanley 11 months ago
parent 7af66f25c4
commit 4863b1200c

@ -34,6 +34,10 @@ ROOT = /data/git/repositories
DISABLED_REPO_UNITS = repo.issues,repo.pulls,repo.wiki,repo.projects
DISABLE_STARS = true
[git]
; Implemented in 1.16 but breaks pip install when using older Git clients
DISABLE_PARTIAL_CLONE = true
[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
REPO_INDEXER_ENABLED = true

Loading…
Cancel
Save