提交 1de30b91 编写于 作者: D Dmitriy Zaporozhets

Merge pull request #4502 from wuwx/patch-1

fix bug when project named: mediawiki
......@@ -3,7 +3,7 @@ module Grack
def project_by_path(path)
if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a
path_with_namespace = m.last
path_with_namespace.gsub!(/.wiki$/, '')
path_with_namespace.gsub!(/\.wiki$/, '')
Project.find_with_namespace(path_with_namespace)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册