summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-06 17:05:59 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-10 12:11:27 +0200
commit49a26eaece601b7dfd20c5809f0ce1129ffbb06b (patch)
tree970b00d4af72cb9a060b91b201ff1d86e7558f4e
parentb3c1d0d8df28d54c094b3980563394db97e25897 (diff)
downloadgitlab-ce-49a26eaece601b7dfd20c5809f0ce1129ffbb06b.tar.gz
Fix project lookup for git over http + rails4
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-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 5ac9e9f325b..cb747fe0137 100644
--- a/lib/gitlab/backend/grack_helpers.rb
+++ b/lib/gitlab/backend/grack_helpers.rb
@@ -1,7 +1,7 @@
module Grack
module Helpers
def project_by_path(path)
- if m = /^\/([\w\.\/-]+)\.git/.match(path).to_a
+ if m = /^([\w\.\/-]+)\.git/.match(path).to_a
path_with_namespace = m.last
path_with_namespace.gsub!(/\.wiki$/, '')