diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-23 10:05:18 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-23 10:05:18 -0800 |
commit | d723bf78b8f86ee19db47725de8d22e8b6d5d6e2 (patch) | |
tree | 770ffc716ba67f1d5273a4ca73ec173e401662c5 | |
parent | 9459e9db2470e9c50488811d1d0fcdd025a327d0 (diff) | |
download | gitlab-ce-d723bf78b8f86ee19db47725de8d22e8b6d5d6e2.tar.gz |
Fix git-over-http
-rw-r--r-- | lib/gitlab/backend/grack_auth.rb | 1 |
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 |