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

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

parent 79e61ab767f4
......@@ -1127,7 +1127,11 @@
def update_remote_mirrors
return unless remote_mirror_available?
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"
def mark_stuck_remote_mirrors_as_failed!
Supports Markdown
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