summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-02-17 11:45:23 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-09 18:25:09 +0100
commit8f2b8fa010e0bf21699c2dbf9afb4ecbe5569f2e (patch)
tree6dfc919b95cf82d1d167c3e02405ae925f27c278
parent6b2b3a745dfa713a8dd7e7ee45a8d0574fb16985 (diff)
downloadbundler-8f2b8fa010e0bf21699c2dbf9afb4ecbe5569f2e.tar.gz
Revert "I don't think this is needed?"
This reverts commit 4ef1fe77cecf730a58f1451b43c31ff037cb85cb.
-rw-r--r--lib/bundler/settings.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index a58265e030..bd98616c3a 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -108,6 +108,8 @@ module Bundler
end
def set_local(key, value)
+ local_config_file || raise(GemfileNotFound, "Could not locate Gemfile")
+
set_key(key, value, @local_config, local_config_file)
end
@@ -384,7 +386,7 @@ module Bundler
end
def local_config_file
- @root.join("config")
+ @root.join("config") if @root
end
def load_config(config_file)