Commit d496bb1b authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fix Geo related specs

parent 67ef62a6
...@@ -75,7 +75,10 @@ module ButtonHelper ...@@ -75,7 +75,10 @@ module ButtonHelper
content_tag (append_link ? :a : :span), content_tag (append_link ? :a : :span),
protocol_element_output, protocol_element_output,
class: 'http-selector', class: 'http-selector',
href: (project.http_url_to_repo if append_link) href: (project.http_url_to_repo if append_link),
data: {
primary_url: (geo_primary_http_url_to_repo(project) if Gitlab::Geo.secondary?)
}
end end
def ssh_clone_button(project, append_link: true) def ssh_clone_button(project, append_link: true)
...@@ -86,7 +89,10 @@ module ButtonHelper ...@@ -86,7 +89,10 @@ module ButtonHelper
content_tag (append_link ? :a : :span), content_tag (append_link ? :a : :span),
ssh_element_output, ssh_element_output,
class: 'ssh-selector', class: 'ssh-selector',
href: (project.ssh_url_to_repo if append_link) href: (project.ssh_url_to_repo if append_link),
data: {
primary_url: (geo_primary_ssh_url_to_repo(project) if Gitlab::Geo.secondary?)
}
end end
def kerberos_clone_button(project) def kerberos_clone_button(project)
......
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