Skip to content

Commit ae7d609

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Don't expire git specs unnecessarily when remote! or cached! are used
rubygems/rubygems@04b26731cb
1 parent 0610302 commit ae7d609

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/bundler/source/git.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ def initialize(options)
3333
end
3434

3535
def remote!
36+
return if @allow_remote
37+
3638
@local_specs = nil
3739
@allow_remote = true
3840
end
3941

4042
def cached!
43+
return if @allow_cached
44+
4145
@local_specs = nil
4246
@allow_cached = true
4347
end

0 commit comments

Comments
 (0)