Commit 1de30b912010b6306383fed0a92248862e9302ce
Exists in
master
and in
4 other branches
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 | 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 | ... | ... |