diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-06-07 16:47:15 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-06-20 15:22:20 +0900 |
commit | ae7d60945602f6dc3a7e99aa8f094d000aa9bede (patch) | |
tree | 7a8ae53ff3c882048b2bfb5395202fa106420f33 | |
parent | 0610302a8fc2e2cab401e0afde36dcaffd841cd7 (diff) | |
download | ruby-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.rb | 4 |
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 |