Commit fb782476f9b68641019d91cf6de9899333518ab5
1 parent
b75401d5
Exists in
spb-stable
and in
3 other branches
Change web_url_without scheme to web_url_without_protocol.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/project.rb
@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base | @@ -201,7 +201,7 @@ class Project < ActiveRecord::Base | ||
201 | [Gitlab.config.gitlab.url, path_with_namespace].join("/") | 201 | [Gitlab.config.gitlab.url, path_with_namespace].join("/") |
202 | end | 202 | end |
203 | 203 | ||
204 | - def web_url_without_scheme | 204 | + def web_url_without_protocol |
205 | web_url.split("://")[1] | 205 | web_url.split("://")[1] |
206 | end | 206 | end |
207 | 207 |
app/views/layouts/_head.html.haml
@@ -23,5 +23,5 @@ | @@ -23,5 +23,5 @@ | ||
23 | 23 | ||
24 | -# Go repository retrieval support. | 24 | -# Go repository retrieval support. |
25 | - if controller_name == 'projects' && action_name == 'show' | 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 |