debian-mirror-gitlab/config/initializers/geo.rb
2020-03-13 15:44:24 +05:30

9 lines
238 B
Ruby

# 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