Commit 2c7b0d5a4655348d4cf45378afa6cda4eb233af2

Authored by wuweixin
1 parent cab2ba0a

fix bug when project named: mediawiki

mediawiki.wiki.git
mediawiki.git

/.wiki$/ match awiki, so when your project named mediawiki
it will be find project named: "medi"

use /\.wiki$/ fix this bug
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 3 def project_by_path(path)
4 4 if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a
5 5 path_with_namespace = m.last
6   - path_with_namespace.gsub!(/.wiki$/, '')
  6 + path_with_namespace.gsub!(/\.wiki$/, '')
7 7  
8 8 Project.find_with_namespace(path_with_namespace)
9 9 end
... ...