diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-10-27 15:17:29 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-27 07:35:58 +0000 |
| commit | 79684cea9f7178389f2b430abdd09ad0fee1e66d (patch) | |
| tree | 8b8bbe4f7a49bf59a1a2158f50eb074827f36d05 | |
| parent | 6a1644ddca64e81839bc5f9953dea692dcac7b70 (diff) | |
[ruby/rubygems] Drop to support old git
https://github.com/ruby/rubygems/commit/687ffd7265
| -rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index b6f8460400..02ec121abe 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -408,11 +408,7 @@ module Bundler def capture3_args_for(cmd, dir) return ["git", *cmd] unless dir - if Bundler.feature_flag.bundler_4_mode? || supports_minus_c? - ["git", "-C", dir.to_s, *cmd] - else - ["git", *cmd, { chdir: dir.to_s }] - end + ["git", "-C", dir.to_s, *cmd] end def extra_clone_args @@ -451,10 +447,6 @@ module Bundler depth.nil? end - def supports_minus_c? - @supports_minus_c ||= Gem::Version.new(version) >= Gem::Version.new("1.8.5") - end - def needs_allow_any_sha1_in_want? @needs_allow_any_sha1_in_want ||= Gem::Version.new(version) <= Gem::Version.new("2.13.7") end |
