Commit 4de22ac8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve wiki path parsing in internal api


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 23c1c55a110a
......@@ -22,7 +22,7 @@
# the wiki repository as well.
access =
if project_path =~ /\.wiki\Z/
project_path = project_path[0..-6]
project_path.sub!(/\.wiki\Z/, '')
Gitlab::GitAccessWiki.new
else
Gitlab::GitAccess.new
......
Supports Markdown
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