0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-21 06:04:13 +01:00

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

This commit is contained in:
Lauris BH 2019-01-24 05:26:18 +02:00 committed by techknowlogick
parent 3b364029f7
commit 386e5312a4

View file

@ -1369,12 +1369,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()