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
end
def http_url_to_repo
root_url = Gitlab::CurrentSettings.custom_http_clone_url_root.presence ||
Gitlab.config.gitlab.url
"#{root_url}/#{full_path}.git"
@project.http_url_to_repo.sub(%r{git\z}, 'wiki.git')
end
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