Change web_url_without scheme to web_url_without_protocol.

This commit is contained in:
Bruno Albuquerque 2014-01-20 06:26:34 -05:00
parent b75401d591
commit fb782476f9
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"}