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

@ -1359,12 +1359,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
} }
repo := &Repository{ repo := &Repository{
OwnerID: u.ID, OwnerID: u.ID,
Owner: u, Owner: u,
Name: opts.Name, Name: opts.Name,
LowerName: strings.ToLower(opts.Name), LowerName: strings.ToLower(opts.Name),
Description: opts.Description, Description: opts.Description,
IsPrivate: opts.IsPrivate, IsPrivate: opts.IsPrivate,
IsFsckEnabled: true,
} }
sess := x.NewSession() sess := x.NewSession()