summaryrefslogtreecommitdiff
path: root/config/initializers/geo.rb
blob: 3278dc9e4840a9fed9c08ccc88841de8ad97751b (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

Gitlab.ee do
  if Gitlab::Geo.connected? && Gitlab::Geo.primary?
    Gitlab::Geo.current_node&.update_clone_url!
  end
rescue => e
  warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
end