Cloning over http fails if gitlab is not on /
Created by: perj
Hi,
we have gitlab on /gitlab/ and after upgrading to 1.7.0 http cloning did not work out of the box. I don't really know ruby, but I fixed it with the following patch (hard coded, sorry). Also @env['REQUEST_PATH']
was not set on our server (apache), had to use @request.path
--- a/config/initializers/grack_auth.rb
+++ b/config/initializers/grack_auth.rb
@@ -13,10 +41,11 @@ module Grack
ENV['GL_BYPASS_UPDATE_HOOK'] = "true"
# Need this patch because the rails mount
- @env['PATH_INFO'] = @env['REQUEST_PATH']
+ @env['PATH_INFO'] = @request.path.sub('gitlab/', '')