Browse Source

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

tags/v1.21.12.1
Lauris BH techknowlogick 6 years ago
parent
commit
386e5312a4
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      models/repo.go

+ 7
- 6
models/repo.go View File

@@ -1369,12 +1369,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
}

repo := &Repository{
OwnerID: u.ID,
Owner: u,
Name: opts.Name,
LowerName: strings.ToLower(opts.Name),
Description: opts.Description,
IsPrivate: opts.IsPrivate,
OwnerID: u.ID,
Owner: u,
Name: opts.Name,
LowerName: strings.ToLower(opts.Name),
Description: opts.Description,
IsPrivate: opts.IsPrivate,
IsFsckEnabled: true,
}

sess := x.NewSession()


Loading…
Cancel
Save