aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-06-07 16:47:15 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-06-20 15:22:20 +0900
commitae7d60945602f6dc3a7e99aa8f094d000aa9bede (patch)
tree7a8ae53ff3c882048b2bfb5395202fa106420f33
parent0610302a8fc2e2cab401e0afde36dcaffd841cd7 (diff)
downloadruby-ae7d60945602f6dc3a7e99aa8f094d000aa9bede.tar.gz
[rubygems/rubygems] Don't expire git specs unnecessarily when remote! or cached! are used
https://github.com/rubygems/rubygems/commit/04b26731cb
-rw-r--r--lib/bundler/source/git.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb
index 1eda282e75..174a24d358 100644
--- a/lib/bundler/source/git.rb
+++ b/lib/bundler/source/git.rb
@@ -33,11 +33,15 @@ module Bundler
end
def remote!
+ return if @allow_remote
+
@local_specs = nil
@allow_remote = true
end
def cached!
+ return if @allow_cached
+
@local_specs = nil
@allow_cached = true
end