summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorAgis- <corestudiosinc@gmail.com>2015-09-15 23:28:54 +0300
committerAgis- <corestudiosinc@gmail.com>2015-09-15 23:37:02 +0300
commit9e2e8dafce6e98a97545a1aff5bdf3dd00c98cf0 (patch)
treefe5482b96fefe23682c85cfff25da200d357783a /lib/bundler
parent9cb77343377856af5920691d99ba9075a8bccec2 (diff)
downloadbundler-9e2e8dafce6e98a97545a1aff5bdf3dd00c98cf0.tar.gz
Ignore ENV["BUNDLE_GEMFILE"] if it's empty
Fixes #3678.
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index bc03b015ad..5ddb6f12db 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -17,7 +17,7 @@ module Bundler
super
custom_gemfile = options[:gemfile] || Bundler.settings[:gemfile]
- ENV["BUNDLE_GEMFILE"] = File.expand_path(custom_gemfile) if custom_gemfile
+ ENV["BUNDLE_GEMFILE"] = File.expand_path(custom_gemfile) if custom_gemfile && !custom_gemfile.empty?
Bundler.settings[:retry] = options[:retry] if options[:retry]