Commit 49a26eae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project lookup for git over http + rails4

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b3c1d0d8
module Grack module Grack
module Helpers module Helpers
def project_by_path(path) 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 = m.last
path_with_namespace.gsub!(/\.wiki$/, '') path_with_namespace.gsub!(/\.wiki$/, '')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment