Skip to content

Commit 2a8437a

Browse files
deivid-rodriguezmatzbot
authored andcommitted
[rubygems/rubygems] Check feature flag earlier
rubygems/rubygems@33536aa61c
1 parent 68c7e75 commit 2a8437a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/bundler/source/git.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ def install(spec, options = {})
217217
end
218218

219219
def cache(spec, custom_path = nil)
220-
app_cache_path = app_cache_path(custom_path)
221220
return unless Bundler.feature_flag.cache_all?
221+
222+
app_cache_path = app_cache_path(custom_path)
222223
return if cache_path == app_cache_path
224+
223225
cached!
224226
FileUtils.rm_rf(app_cache_path)
225227
git_proxy.checkout if requires_checkout?

0 commit comments

Comments
 (0)