Browse Source

Fix migrate mirror 500 bug (#8526)

tags/v1.11.0-rc1
Lunny Xiao zeripath 6 years ago
parent
commit
f05d8c55bb
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