Skip to content

Commit 5ae82e5

Browse files
committed
fix test
1 parent 23c73e1 commit 5ae82e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
14301430
IsFsckEnabled: !opts.IsMirror,
14311431
CloseIssuesViaCommitInAnyBranch: setting.Repository.DefaultCloseIssuesViaCommitsInAnyBranch,
14321432
Status: opts.Status,
1433-
IsEmpty: true,
1433+
IsEmpty: !opts.AutoInit,
14341434
}
14351435

14361436
sess := x.NewSession()

0 commit comments

Comments
 (0)