Fix migrate mirror 500 bug (#8526)

tokarchuk/v1.17
Lunny Xiao 5 years ago committed by zeripath
parent 0b44f0c465
commit 1d9a1a0d45
  1. 1
      models/repo.go

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

Loading…
Cancel
Save