Commit fb782476 authored by Bruno Albuquerque's avatar Bruno Albuquerque
Browse files

Change web_url_without scheme to web_url_without_protocol.

parent 9c174a3c24e5
...@@ -201,7 +201,7 @@ def web_url ...@@ -201,7 +201,7 @@ def web_url
[Gitlab.config.gitlab.url, path_with_namespace].join("/") [Gitlab.config.gitlab.url, path_with_namespace].join("/")
end end
def web_url_without_scheme def web_url_without_protocol
web_url.split("://")[1] web_url.split("://")[1]
end end
......
...@@ -23,5 +23,5 @@ ...@@ -23,5 +23,5 @@
-# Go repository retrieval support. -# Go repository retrieval support.
- if controller_name == 'projects' && action_name == 'show' - if controller_name == 'projects' && action_name == 'show'
%meta{name: "go-import", content: "#{@project.web_url_without_scheme} git #{@project.web_url}.git"} %meta{name: "go-import", content: "#{@project.web_url_without_protocol} git #{@project.web_url}.git"}
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