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