1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

Fix migrate mirror 500 bug (#8526) (#8530)

* fix migrate mirror 500 bug

* update backport
This commit is contained in:
6543 2019-10-16 11:48:45 +02:00 committed by zeripath
parent 595033f78e
commit 0752a3895a

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()