2019-07-09 01:06:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-08 19:46:34 +00:00
|
|
|
Gitlab.ee do
|
2020-01-30 06:08:49 +00:00
|
|
|
if Gitlab::Geo.connected? && Gitlab::Geo.primary?
|
|
|
|
Gitlab::Geo.current_node&.update_clone_url!
|
2019-07-08 19:46:34 +00:00
|
|
|
end
|
2021-04-26 12:09:44 +00:00
|
|
|
rescue StandardError => e
|
2020-01-30 06:08:49 +00:00
|
|
|
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
|
2019-07-08 19:46:34 +00:00
|
|
|
end
|