Skip to content

Commit

Permalink
Improve wiki path parsing in internal api
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
  • Loading branch information
dzaporozhets committed Oct 7, 2014
1 parent 0bf99f6 commit 06c91aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/internal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Internal < Grape::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
Expand Down

0 comments on commit 06c91aa

Please sign in to comment.