summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb2
1 files changed, 1 insertions, 1 deletions
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