diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-16 16:59:02 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-16 09:59:02 +0100 |
commit | 1d9a1a0d456887a458fd17fef417ff9c6bdd58da (patch) | |
tree | d72a1cfd87b28d27f0fdc88669013e89ed6ca6ad /models | |
parent | 0b44f0c4657759dd31184287d793c7143da24a31 (diff) | |
download | gitea-1d9a1a0d456887a458fd17fef417ff9c6bdd58da.tar.gz gitea-1d9a1a0d456887a458fd17fef417ff9c6bdd58da.zip |
Fix migrate mirror 500 bug (#8526)
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index aa2cf06f32..d8a462c37b 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() |