added RAILS_RELATIVE_URL_ROOT support

This commit is contained in:
Chris Frohoff 2012-12-28 18:11:28 +00:00
parent e9394c48ca
commit 21e55ca318
7 changed files with 16 additions and 7 deletions

View file

@ -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)