Commit 1de30b912010b6306383fed0a92248862e9302ce

Authored by Dmitriy Zaporozhets
2 parents 17a4f11e 2c7b0d5a

Merge pull request #4502 from wuwx/patch-1

fix bug when project named: mediawiki
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gitlab/backend/grack_helpers.rb
@@ -3,7 +3,7 @@ module Grack @@ -3,7 +3,7 @@ module Grack
3 def project_by_path(path) 3 def project_by_path(path)
4 if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a 4 if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a
5 path_with_namespace = m.last 5 path_with_namespace = m.last
6 - path_with_namespace.gsub!(/.wiki$/, '') 6 + path_with_namespace.gsub!(/\.wiki$/, '')
7 7
8 Project.find_with_namespace(path_with_namespace) 8 Project.find_with_namespace(path_with_namespace)
9 end 9 end