Commit 3a5fccfa authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix display of primary clone URL in _geo_info_modal for SSH protocol

parent 77abcc60
...@@ -84,7 +84,8 @@ module ButtonHelper ...@@ -84,7 +84,8 @@ module ButtonHelper
html: true, html: true,
placement: placement, placement: placement,
container: 'body', container: 'body',
title: _('Add an SSH key to your profile to pull or push via SSH.') title: _('Add an SSH key to your profile to pull or push via SSH.'),
primary_url: (geo_primary_ssh_url_to_repo(project) if Gitlab::Geo.secondary?)
} }
end end
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
remote: remote:
= clipboard_button(target: 'pre#geo-info-2') = clipboard_button(target: 'pre#geo-info-2')
%pre#geo-info-2.dark %pre#geo-info-2.dark
git remote set-url --push origin #{geo_primary_default_url_to_repo(project)} git remote set-url --push origin <clone url for primary repository>
%p %p
%strong= 'Done.' %strong= 'Done.'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment