summaryrefslogtreecommitdiff
path: root/lib/bundler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 326dacb595..94cf48ec7e 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -109,6 +109,10 @@ module Bundler
private
def default_gemfile
+ if ENV['BUNDLE_GEMFILE']
+ return Pathname.new(ENV['BUNDLE_GEMFILE'])
+ end
+
current = Pathname.new(Dir.pwd)
until current.root?