Skip to content

Commit

Permalink
Fix migrate mirror 500 bug (#8526) (#8530)
Browse files Browse the repository at this point in the history
* fix migrate mirror 500 bug

* update backport
  • Loading branch information
6543 authored and zeripath committed Oct 16, 2019
1 parent 595033f commit 0752a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0752a38

Please sign in to comment.