Skip to content

Commit 79684ce

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Drop to support old git
ruby/rubygems@687ffd7265
1 parent 6a1644d commit 79684ce

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/bundler/source/git/git_proxy.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,7 @@ def capture(cmd, dir, ignore_err: false)
408408
def capture3_args_for(cmd, dir)
409409
return ["git", *cmd] unless dir
410410

411-
if Bundler.feature_flag.bundler_4_mode? || supports_minus_c?
412-
["git", "-C", dir.to_s, *cmd]
413-
else
414-
["git", *cmd, { chdir: dir.to_s }]
415-
end
411+
["git", "-C", dir.to_s, *cmd]
416412
end
417413

418414
def extra_clone_args
@@ -451,10 +447,6 @@ def full_clone?
451447
depth.nil?
452448
end
453449

454-
def supports_minus_c?
455-
@supports_minus_c ||= Gem::Version.new(version) >= Gem::Version.new("1.8.5")
456-
end
457-
458450
def needs_allow_any_sha1_in_want?
459451
@needs_allow_any_sha1_in_want ||= Gem::Version.new(version) <= Gem::Version.new("2.13.7")
460452
end

0 commit comments

Comments
 (0)