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 lunny committed Jan 29, 2019
1 parent 2979953 commit 4fe1a30
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 @@ -1359,12 +1359,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 4fe1a30

Please sign in to comment.