diff --git a/lib/gitlab/backend/grack_helpers.rb b/lib/gitlab/backend/grack_helpers.rb index 88b2d167312f2c7edbee776e1920c632ee4fb717..5ac9e9f325be1fefd9e908036c4598e114c82c25 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