diff options
author | Paul Barton <28630076+paulbarton90@users.noreply.github.com> | 2021-01-02 23:47:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 18:47:47 -0500 |
commit | 7576e37a65729363370d6672ff6e69e87b68ac5f (patch) | |
tree | c2e885826e6f744b88949c9451d6a206ff48abcd /modules/migrations/gitea_uploader.go | |
parent | 3abea9e9eb8cbe42d1ec0afa70b4941d4066130f (diff) | |
download | gitea-7576e37a65729363370d6672ff6e69e87b68ac5f.tar.gz gitea-7576e37a65729363370d6672ff6e69e87b68ac5f.zip |
Add MirrorInterval to the API (#14163)
* Added MirrorInterval to the API
* Remove MirrorInterval from CreateRepository
* Removed Duplicate UpdateMirror Function
* Updated Error Logging
* Update Log Message for is not Mirror
Co-authored-by: 6543 <6543@obermui.de>
* Delete Debug Statement that snuck in
Co-authored-by: zeripath <art27@cantab.net>
* Add Check for If Interval is too small
* Output to API Call
* Add Error Object when time is Less than Min Interval
* Frequency Error Message
Co-authored-by: zeripath <art27@cantab.net>
* Allow Zero Mirror Interval
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/migrations/gitea_uploader.go')
-rw-r--r-- | modules/migrations/gitea_uploader.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |