Browse Source

Fix migrate mirror 500 bug (#8526)

tags/v1.11.0-rc1
Lunny Xiao 4 years ago
parent
commit
1d9a1a0d45
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      models/repo.go

+ 1
- 0
models/repo.go 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()

Loading…
Cancel
Save