Commit 49a26eaece601b7dfd20c5809f0ce1129ffbb06b
1 parent
b3c1d0d8
Exists in
master
and in
4 other branches
Fix project lookup for git over http + rails4
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gitlab/backend/grack_helpers.rb
| 1 | module Grack | 1 | module Grack |
| 2 | module Helpers | 2 | module Helpers |
| 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 |