Commit aed7f171 authored by Michael Kozono's avatar Michael Kozono

Simplify ProjectWiki#http_url_to_repo method

parent 4384fa6d
...@@ -54,10 +54,7 @@ class ProjectWiki ...@@ -54,10 +54,7 @@ class ProjectWiki
end end
def http_url_to_repo def http_url_to_repo
root_url = Gitlab::CurrentSettings.custom_http_clone_url_root.presence || @project.http_url_to_repo.sub(%r{git\z}, 'wiki.git')
Gitlab.config.gitlab.url
"#{root_url}/#{full_path}.git"
end end
def wiki_base_path def wiki_base_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment