Skip to content

Commit f7f36a3

Browse files
authored
Merge pull request #9038 from ruby/remove-bundler-4-mode
Remove `bundler_4_mode`
2 parents 024186c + b2e1810 commit f7f36a3

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

bundler/lib/bundler/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def version
492492
build_info = " (#{BuildMetadata.timestamp} commit #{BuildMetadata.git_commit_sha})"
493493
end
494494

495-
if !cli_help && Bundler.feature_flag.bundler_4_mode?
495+
if !cli_help
496496
Bundler.ui.info "#{Bundler.verbose_version}#{build_info}"
497497
else
498498
Bundler.ui.info "Bundler version #{Bundler.verbose_version}#{build_info}"

bundler/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)