0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-29 00:07:56 +01:00

Fix migrate mirror 500 bug (#8526)

This commit is contained in:
Lunny Xiao 2019-10-16 16:59:02 +08:00 committed by zeripath
parent 0b44f0c465
commit 1d9a1a0d45

View file

@ -1430,6 +1430,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
IsFsckEnabled: !opts.IsMirror,
CloseIssuesViaCommitInAnyBranch: setting.Repository.DefaultCloseIssuesViaCommitsInAnyBranch,
Status: opts.Status,
IsEmpty: !opts.AutoInit,
}
sess := x.NewSession()