Skip to content
Snippets Groups Projects
Commit ee3046f9 authored by Bruno Albuquerque's avatar Bruno Albuquerque
Browse files

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.
parent 93938090
No related branches found
No related tags found
1 merge request!5958Added support for Go's repository retrieval.
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment