Improve wiki path parsing in internal api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
0bf99f6557
commit
06c91aa20e
|
@ -22,7 +22,7 @@ module API
|
|||
# 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
|
||||
|
|
Loading…
Reference in New Issue