Use different Gemfile.lock files for different branches:
- Symlink
Gemfile.branch1andGemfile.branch2toGemfile.all. - Use the
branch-bundlescript instead ofbundle.
| #!/usr/bin/ruby | |
| require 'localconfig/config' | |
| ENV['BUNDLE_GEMFILE'] = "Gemfile.#{LocalConfig.branch}" | |
| exec ['bundle']*2, *ARGV |