diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-07 18:28:55 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-10-07 18:28:55 +0400 |
commit | 06c91aa20e6a8aed383d0a623a558983705edcb9 (patch) | |
tree | 5c1f34983f213d9ebfb78fdcc597d36318c9e499 /lib | |
parent | 0bf99f65577d1e0edda8f4e060159d927b308974 (diff) |
Improve wiki path parsing in internal api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/internal.rb | 2 |
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 |