Read about our upcoming Code of Conduct on this issue

Commit b60bd9c1 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

project: do not trigger pull mirror updates on post-receive

--HG--
branch : heptapod
parent 79e61ab767f4
......@@ -1127,7 +1127,11 @@ def updating_remote_mirror?
def update_remote_mirrors
return unless remote_mirror_available?
remote_mirrors.enabled.each(&:sync)
remote_mirrors.enabled.each do |mirror|
# Do not trigger `Pull` jobs because Gitlab expects "remote mirrors"
# to be push-only, and that could be confusing/lead to errors.
mirror.sync unless mirror.hg_mirror_type == "hg-pull"
end
end
def mark_stuck_remote_mirrors_as_failed!
......
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