Change web_url_without scheme to web_url_without_protocol.
This commit is contained in:
parent
b75401d591
commit
fb782476f9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue