mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user