added RAILS_RELATIVE_URL_ROOT support
This commit is contained in:
parent
e9394c48ca
commit
21e55ca318
7 changed files with 16 additions and 7 deletions
|
@ -17,10 +17,6 @@ module Grack
|
|||
# Pass Gitolite update hook
|
||||
ENV['GL_BYPASS_UPDATE_HOOK'] = "true"
|
||||
|
||||
# Need this patch due to the rails mount
|
||||
@env['PATH_INFO'] = @request.path
|
||||
@env['SCRIPT_NAME'] = ""
|
||||
|
||||
# Find project by PATH_INFO from env
|
||||
if m = /^\/([\w\.\/-]+)\.git/.match(@request.path_info).to_a
|
||||
self.project = Project.find_with_namespace(m.last)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue