Skip to content
Snippets Groups Projects
Commit 1de30b91 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #4502 from wuwx/patch-1

fix bug when project named: mediawiki
parents 17a4f11e 2c7b0d5a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment