Skip to content

Commit 6b58b6e

Browse files
committed
When creating new repository fsck option should be enabled
1 parent 331c912 commit 6b58b6e

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
@@ -1369,12 +1369,13 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
13691369
}
13701370

13711371
repo := &Repository{
1372-
OwnerID: u.ID,
1373-
Owner: u,
1374-
Name: opts.Name,
1375-
LowerName: strings.ToLower(opts.Name),
1376-
Description: opts.Description,
1377-
IsPrivate: opts.IsPrivate,
1372+
OwnerID: u.ID,
1373+
Owner: u,
1374+
Name: opts.Name,
1375+
LowerName: strings.ToLower(opts.Name),
1376+
Description: opts.Description,
1377+
IsPrivate: opts.IsPrivate,
1378+
IsFsckEnabled: true,
13781379
}
13791380

13801381
sess := x.NewSession()

0 commit comments

Comments
 (0)