chore: raise minimum git version to 2.25 (#39131)

This commit is contained in:
silverwind
2026-08-26 20:35:44 +02:00
committed by GitHub
parent 3005efa88d
commit 3c4d5a6a5c
4 changed files with 5 additions and 9 deletions
+1 -2
View File
@@ -91,8 +91,7 @@ func syncGitConfig(ctx context.Context) (err error) {
}
}
// By default, partial clones are disabled, enable them from git v2.22
if !setting.Git.DisablePartialClone && DefaultFeatures().CheckVersionAtLeast("2.22") {
if !setting.Git.DisablePartialClone {
if err = configSet(ctx, "uploadpack.allowfilter", "true"); err != nil {
return err
}