Fix project lookup for git over http + rails4

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-06 17:05:59 +02:00
parent b3c1d0d8df
commit 49a26eaece
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module Grack
module Helpers
def project_by_path(path)
if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a
if m = /^([\w\.\/-]+)\.git/.match(path).to_a
path_with_namespace = m.last
path_with_namespace.gsub!(/\.wiki$/, '')