Skip to content

Commit 4fe1a30

Browse files
lafrikslunny
authored andcommitted
When creating new repository fsck option should be enabled (#5817) (#5885)
1 parent 2979953 commit 4fe1a30

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

models/repo.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,12 +1359,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
13591359
}
13601360

13611361
repo := &Repository{
1362-
OwnerID: u.ID,
1363-
Owner: u,
1364-
Name: opts.Name,
1365-
LowerName: strings.ToLower(opts.Name),
1366-
Description: opts.Description,
1367-
IsPrivate: opts.IsPrivate,
1362+
OwnerID: u.ID,
1363+
Owner: u,
1364+
Name: opts.Name,
1365+
LowerName: strings.ToLower(opts.Name),
1366+
Description: opts.Description,
1367+
IsPrivate: opts.IsPrivate,
1368+
IsFsckEnabled: true,
13681369
}
13691370

13701371
sess := x.NewSession()

0 commit comments

Comments
 (0)