Skip to content
Snippets Groups Projects
Commit fb782476 authored by Bruno Albuquerque's avatar Bruno Albuquerque
Browse files

Change web_url_without scheme to web_url_without_protocol.

parent b75401d5
No related branches found
No related tags found
1 merge request!5958Added support for Go's repository retrieval.
Loading
Loading
@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base
[Gitlab.config.gitlab.url, path_with_namespace].join("/")
end
 
def web_url_without_scheme
def web_url_without_protocol
web_url.split("://")[1]
end
 
Loading
Loading
Loading
Loading
@@ -23,5 +23,5 @@
 
-# Go repository retrieval support.
- 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"}
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment