debian-mirror-gitlab/config/initializers/geo.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
252 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
Gitlab.ee do
2020-03-13 15:44:24 +05:30
if Gitlab::Geo.connected? && Gitlab::Geo.primary?
Gitlab::Geo.current_node&.update_clone_url!
2019-09-30 21:07:59 +05:30
end
2021-06-08 01:23:25 +05:30
rescue StandardError => e
2020-03-13 15:44:24 +05:30
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
2019-09-30 21:07:59 +05:30
end