Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1287 from tmm1/kiji-frozen-fix
Browse files Browse the repository at this point in the history
avoid modifying frozen array (fixes `bundle install --without` on kiji)
  • Loading branch information
Andre Arko committed Jul 6, 2011
2 parents 6cab7e9 + 03c7d3c commit 68ad8d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def install(path = nil)
opts = options.dup
opts[:without] ||= []
if opts[:without].size == 1
opts[:without].map!{|g| g.split(" ") }
opts[:without] = opts[:without].map{|g| g.split(" ") }
opts[:without].flatten!
end
opts[:without].map!{|g| g.to_sym }
opts[:without] = opts[:without].map{|g| g.to_sym }

# Can't use Bundler.settings for this because settings needs gemfile.dirname
ENV['BUNDLE_GEMFILE'] = File.expand_path(opts[:gemfile]) if opts[:gemfile]
Expand Down

0 comments on commit 68ad8d4

Please sign in to comment.