rails/rails — pull request #6318 by mpapis (2012-05-15 07:14:30+00:00)
Title: fix `bundle exec rails new app` not running `bundle install` properly

the issue can be reproduce with:

printf "source :rubygems\n\ngem 'rails'\n" > Gemfile
bundle install
bundle exec rails new app1
rails new app2
ls -l app*/Gemfile.lock

In the case of `app1` the command `bundle install` was run in context of already loaded Gemfile, which had totally different effect then expected.

This also fixes #6314.