Correctly store mirror setting in migration

This commit is contained in:
harryzcy 2023-05-06 19:47:56 -04:00
parent 78945ebd0e
commit a3a40157a3
No known key found for this signature in database
GPG Key ID: E3C2287691E40E35
1 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,12 @@ func (g *GiteaLocalUploader) CreateRepo(repo *base.Repository, opts base.Migrate
Private: repo.IsPrivate,
Wiki: opts.Wiki,
Releases: opts.Releases, // if didn't get releases, then sync them from tags
Issues: opts.Issues,
Milestones: opts.Milestones,
Labels: opts.Labels,
Comments: opts.Comments,
PullRequests: opts.PullRequests,
ReleaseAssets: opts.ReleaseAssets,
MirrorInterval: opts.MirrorInterval,
}, NewMigrationHTTPTransport())