Skip to content

Commit

Permalink
fix migrate mirror 500 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Oct 16, 2019
1 parent e1505d6 commit 23c73e1
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: true,
}

sess := x.NewSession()
Expand Down

0 comments on commit 23c73e1

Please sign in to comment.