mislav/git-deploy — Issue #18: Honoring .rvmrc
Author: punund
Created: 2012-01-04 18:34:27+00:00
State: open

There is probably related to bundler issues.

Why not take into account the popular RVM approach, which lets rvm invoke bundler through .rvmrc script, maybe something along the lines

````ruby
if File.file? '.rvmrc'
puts 'Running "rvm rvmrc load"...'
run "bash -c 'source #{ENV['HOME']}/.rvm/scripts/rvm ; rvm rvmrc load'"
end

Without that, the hook fails because rvm redefines cd and wants to execute untrusted .rvmrc non-interactively.