Commit d12a2991 authored by Tiago Botelho's avatar Tiago Botelho

Adds changelog entry, changes RemoteMirror#sync? to be semantically sound and...

Adds changelog entry, changes RemoteMirror#sync? to be semantically sound and remove reference to pull mirrors in view
parent 961255b1
...@@ -87,11 +87,11 @@ class RemoteMirror < ActiveRecord::Base ...@@ -87,11 +87,11 @@ class RemoteMirror < ActiveRecord::Base
end end
def sync? def sync?
!enabled? enabled?
end end
def sync def sync
return if sync? return unless sync?
if recently_scheduled? if recently_scheduled?
RepositoryUpdateRemoteMirrorWorker.perform_in(backoff_delay, self.id, Time.now) RepositoryUpdateRemoteMirrorWorker.perform_in(backoff_delay, self.id, Time.now)
......
...@@ -321,6 +321,6 @@ ...@@ -321,6 +321,6 @@
%button.btn.js-settings-toggle{ type: 'button' } %button.btn.js-settings-toggle{ type: 'button' }
= expanded ? 'Collapse' : 'Expand' = expanded ? 'Collapse' : 'Expand'
%p %p
= _('Configure push and pull mirrors.') = _('Configure push mirrors.')
.settings-content .settings-content
= render partial: 'repository_mirrors_form' = render partial: 'repository_mirrors_form'
---
title: Adds push mirrors to GitLab Community Edition
merge_request: 18715
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment