Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bundler is not respecting the --no-prune option on install.

  • Loading branch information...
commit 39debd8c8f1d693443e6823172c89a5733cb94fa 1 parent fc1d377
@cmeiklejohn cmeiklejohn authored indirect committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/bundler/cli.rb
View
3  lib/bundler/cli.rb
@@ -217,6 +217,7 @@ def install(path = nil)
Bundler.settings[:path] = path if path
Bundler.settings[:path] = opts[:path] if opts[:path]
Bundler.settings[:bin] = opts["binstubs"] if opts[:binstubs]
+ Bundler.settings[:no_prune] = true if opts["no-prune"]
Bundler.settings[:disable_shared_gems] = Bundler.settings[:path] ? '1' : nil
Bundler.settings.without = opts[:without] unless opts[:without].empty?
Bundler.ui.be_quiet! if opts[:quiet]
@@ -310,7 +311,7 @@ def show(gem_name = nil)
def cache
Bundler.definition.resolve_with_cache!
Bundler.load.cache
- Bundler.settings[:no_prune] = true if options[:no_prune]
+ Bundler.settings[:no_prune] = true if options["no-prune"]
Bundler.load.lock
rescue GemNotFound => e
Bundler.ui.error(e.message)
Please sign in to comment.
Something went wrong with that request. Please try again.