Commit fb782476 authored by Bruno Albuquerque's avatar Bruno Albuquerque

Change web_url_without scheme to web_url_without_protocol.

parent b75401d5
...@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base ...@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base
[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