From ee3046f9a9f496b84b6b1e5e0d17dc69cecc72ff Mon Sep 17 00:00:00 2001 From: Bruno Albuquerque Date: Mon, 30 Dec 2013 17:44:11 -0500 Subject: [PATCH] Use web_url for web_url_without_scheme. - Previus version was still incorrect as it ignored cases where GitLab would be installed in a custom location. - This assumes that if this method can be calle, web_url will return a valid URL. --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 1384165231c..add54eb898b 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -202,7 +202,7 @@ class Project < ActiveRecord::Base end def web_url_without_scheme - [Gitlab.config.gitlab.host, path_with_namespace].join("/") + web_url.split("://")[1] end def build_commit_note(commit)