summaryrefslogtreecommitdiffstats
path: root/modules/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migrations')
-rw-r--r--modules/migrations/base/options.go1
-rw-r--r--modules/migrations/gitea_uploader.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/migrations/base/options.go b/modules/migrations/base/options.go
index 3c9b2c22fc..168f9848c8 100644
--- a/modules/migrations/base/options.go
+++ b/modules/migrations/base/options.go
@@ -33,4 +33,5 @@ type MigrateOptions struct {
PullRequests bool
ReleaseAssets bool
MigrateToRepoID int64
+ MirrorInterval string `json:"mirror_interval"`
}
diff --git a/modules/migrations/gitea_uploader.go b/modules/migrations/gitea_uploader.go
index 6118b3b5c1..2c79bd4b0f 100644
--- a/modules/migrations/gitea_uploader.go
+++ b/modules/migrations/gitea_uploader.go
@@ -142,6 +142,7 @@ 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
+ MirrorInterval: opts.MirrorInterval,
})
g.repo = r