diff --git a/lib/gitlab/backend/grack_helpers.rb b/lib/gitlab/backend/grack_helpers.rb index 88b2d167312..5ac9e9f325b 100644 --- a/lib/gitlab/backend/grack_helpers.rb +++ b/lib/gitlab/backend/grack_helpers.rb @@ -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