When creating new repository fsck option should be enabled (#5817) (#5885)

This commit is contained in:
Lauris BH 2019-01-29 03:42:47 +02:00 committed by Lunny Xiao
parent 29799537a7
commit 4fe1a3050e

View File

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