mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
fix bug when project named: mediawiki
mediawiki.wiki.git mediawiki.git /.wiki$/ match awiki, so when your project named mediawiki it will be find project named: "medi" use /\.wiki$/ fix this bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user