mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
disable git fsck for mirrored repos by default (#6018)
This commit is contained in:
@@ -1379,7 +1379,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
|
||||
LowerName: strings.ToLower(opts.Name),
|
||||
Description: opts.Description,
|
||||
IsPrivate: opts.IsPrivate,
|
||||
IsFsckEnabled: true,
|
||||
IsFsckEnabled: !opts.IsMirror,
|
||||
}
|
||||
|
||||
sess := x.NewSession()
|
||||
|
Reference in New Issue
Block a user