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

release/v1.8
Lanre Adelowo 5 years ago committed by zeripath
parent d252d4eb8c
commit 3a33742e38

@ -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()

Loading…
Cancel
Save