From 06c91aa20e6a8aed383d0a623a558983705edcb9 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 7 Oct 2014 17:28:55 +0300 Subject: [PATCH] Improve wiki path parsing in internal api Signed-off-by: Dmitriy Zaporozhets --- lib/api/internal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 94aa2f78c2e..9ac659f50fd 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -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