Commit 3e665fe1 authored by Raphaël Gomès's avatar Raphaël Gomès

pull: don't pull bookmarks unless `heptapod.allow-bookmarks` is enabled

--HG--
branch : heptapod
parent f6d3cd87b230
......@@ -582,6 +582,9 @@ def hg_pull(user, remote_url, gitlab_branches: nil, env: nil,
cmd << Gitlab::Mercurial::branchmap_key_for_gitlab_branch(glb)
end
end
unless hg_config_item_bool?('heptapod.allow-bookmarks')
cmd.append('--config', 'heptapod.exchange-ignore-bookmarks=yes')
end
output, status = popen(cmd, @hgpath, env)
if status == 1
prefix, complements =
......
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