Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-23 21:05:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-23 21:05:18 +0300
commitd723bf78b8f86ee19db47725de8d22e8b6d5d6e2 (patch)
tree770ffc716ba67f1d5273a4ca73ec173e401662c5 /lib
parent9459e9db2470e9c50488811d1d0fcdd025a327d0 (diff)
Fix git-over-http
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/backend/grack_auth.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/backend/grack_auth.rb b/lib/gitlab/backend/grack_auth.rb
index 3f207c56631..dc4b945f9d4 100644
--- a/lib/gitlab/backend/grack_auth.rb
+++ b/lib/gitlab/backend/grack_auth.rb
@@ -149,6 +149,7 @@ module Grack
path_with_namespace = m.last
path_with_namespace.gsub!(/\.wiki$/, '')
+ path_with_namespace[0] = '' if path_with_namespace.start_with?('/')
Project.find_with_namespace(path_with_namespace)
end
end