carlhuda/bundler — pull request #1837 by dlee (2012-04-11 11:29:06+00:00)
Title: Bundler uses local overrides even when :branch not specified

_Note: I actually would like to bypass :branch checking by default, as I mentioned in Issue #1810._

As the specified behavior (checking :branch by default) stands, there's a bug in that once you've run bundle install/update with the proper :branch option, you can remove the :branch option and it'll still use the override without complaints.

The bug also manifests itself if you set both :ref and :branch, and then change the :branch to a different branch after bundle install.

If users expect the enforcement of :branch options, then the :branch must be checked on runtime.

This pull request provides the failing specs.