thoughtworks/cruisecontrol.rb — pull request #92 by primerano (2012-02-24 20:47:57+00:00)
Title: bundle check and bundle install use ccrb's environment.

In order for bundle check to work correctly, Bundler.with_clean_env must be called before the system commands are executed.

See also
https://github.com/carlhuda/bundler/issues/1677

FYI.. this seems to work fine with bundler 1.0. 1.1 is needed for sub of subs.