summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 09:21:53 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-11 09:21:53 -0700
commit1de30b912010b6306383fed0a92248862e9302ce (patch)
tree15eea3f3633776875bad2b2f2d95506ff15a5d6d
parent17a4f11e9fa8f6dd68e5dd19cf4b31ff9d7a2dce (diff)
parent2c7b0d5a4655348d4cf45378afa6cda4eb233af2 (diff)
downloadgitlab-ce-1de30b912010b6306383fed0a92248862e9302ce.tar.gz
Merge pull request #4502 from wuwx/patch-1
fix bug when project named: mediawiki
-rw-r--r--lib/gitlab/backend/grack_helpers.rb2
1 files changed, 1 insertions, 1 deletions
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