Commit fb782476f9b68641019d91cf6de9899333518ab5

Authored by Bruno Albuquerque
1 parent b75401d5

Change web_url_without scheme to web_url_without_protocol.

app/models/project.rb
... ... @@ -201,7 +201,7 @@ class Project < ActiveRecord::Base
201 201 [Gitlab.config.gitlab.url, path_with_namespace].join("/")
202 202 end
203 203  
204   - def web_url_without_scheme
  204 + def web_url_without_protocol
205 205 web_url.split("://")[1]
206 206 end
207 207  
... ...
app/views/layouts/_head.html.haml
... ... @@ -23,5 +23,5 @@
23 23  
24 24 -# Go repository retrieval support.
25 25 - if controller_name == 'projects' && action_name == 'show'
26   - %meta{name: "go-import", content: "#{@project.web_url_without_scheme} git #{@project.web_url}.git"}
  26 + %meta{name: "go-import", content: "#{@project.web_url_without_protocol} git #{@project.web_url}.git"}
27 27  
... ...