Skip to content

Commit

Permalink
When creating new repository fsck option should be enabled (#5817)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks authored and techknowlogick committed Jan 24, 2019
1 parent 3b36402 commit 386e531
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 386e531

Please sign in to comment.