summaryrefslogtreecommitdiff
path: root/config/initializers/geo.rb
blob: e0530f438995c6e4565d2b254552d6cc96d9a5c4 (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 StandardError => e
  warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
end