Commit 06c91aa2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve wiki path parsing in internal api

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