0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-21 08:14:19 +01:00

disable git fsck for mirrored repos by default (#6018)

This commit is contained in:
Lanre Adelowo 2019-02-09 15:34:50 +01:00 committed by zeripath
parent d252d4eb8c
commit 3a33742e38

View file

@ -1379,7 +1379,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
LowerName: strings.ToLower(opts.Name), LowerName: strings.ToLower(opts.Name),
Description: opts.Description, Description: opts.Description,
IsPrivate: opts.IsPrivate, IsPrivate: opts.IsPrivate,
IsFsckEnabled: true, IsFsckEnabled: !opts.IsMirror,
} }
sess := x.NewSession() sess := x.NewSession()