mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-28 07:35:49 +00:00
chore: raise minimum git version to 2.25 (#39131)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user