From 0752a3895ab5a1aeabe347e2c108e2f1b2a609e6 Mon Sep 17 00:00:00 2001 From: 6543 <24977596+6543@users.noreply.github.com> Date: Wed, 16 Oct 2019 11:48:45 +0200 Subject: [PATCH] Fix migrate mirror 500 bug (#8526) (#8530) * fix migrate mirror 500 bug * update backport --- models/repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/repo.go b/models/repo.go index aa2cf06f3..d8a462c37 100644 --- a/models/repo.go +++ b/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()