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
|
2020-03-13 15:44:24 +05:30
|
|
|
rescue => e
|
|
|
|
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
|
2019-09-30 21:07:59 +05:30
|
|
|
end
|