Skip to content

Commit 0752a38

Browse files
6543zeripath
authored andcommitted
Fix migrate mirror 500 bug (#8526) (#8530)
* fix migrate mirror 500 bug * update backport
1 parent 595033f commit 0752a38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

+1
Original file line numberDiff line numberDiff line change
@@ -1430,6 +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: !opts.AutoInit,
14331434
}
14341435

14351436
sess := x.NewSession()

0 commit comments

Comments
 (0)