diff options
author | Lauris BH <lauris@nix.lv> | 2019-01-24 05:26:18 +0200 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-01-23 22:26:18 -0500 |
commit | 386e5312a4830ae9f87d00d7d95c8c849d50a06f (patch) | |
tree | 4606325b6304d134e669ca0af27b68ffed414656 | |
parent | 3b364029f74a53db7f1719d67a4fd83202b850d4 (diff) | |
download | gitea-386e5312a4830ae9f87d00d7d95c8c849d50a06f.tar.gz gitea-386e5312a4830ae9f87d00d7d95c8c849d50a06f.zip |
When creating new repository fsck option should be enabled (#5817)
-rw-r--r-- | models/repo.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/models/repo.go b/models/repo.go index 0a00e6c7a8..fc566ab2d3 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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() |