Commit 13f9a9fb authored by Raphaël Gomès's avatar Raphaël Gomès

remote-mirrors: honor "only mirror protected branches" setting

branch : heptapod
parent 39ba4889905a
......@@ -43,7 +43,7 @@ def update_mirror(remote_mirror)
send_lfs_objects!(remote_mirror) unless project.mercurial?
branch_names = nil
if project.mercurial?
if project.mercurial? and remote_mirror.only_protected_branches
# For now only pull protected branches to prevent pulling topics.
# Later on, this will become a (non-default?) option.
branch_names = {|b|}.select do |name|
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