diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-29 20:02:13 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-29 20:02:13 +0900 |
commit | 4b91d6abb907fe3375fbd04a6af910d8b1792d78 (patch) | |
tree | 832b8aa726f6f881b709d19b59616d553ce1f3a3 /tool/test | |
parent | 7a7aba755d8da34555445510dc568380d0d96791 (diff) | |
download | ruby-4b91d6abb907fe3375fbd04a6af910d8b1792d78.tar.gz |
Revert "Test sync_default_gems.rb only when git 2.32 is available"
This reverts commit b0f44cfa5da53b90817732cb25b4d3a1cddecb89.
Diffstat (limited to 'tool/test')
-rwxr-xr-x | tool/test/test_sync_default_gems.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tool/test/test_sync_default_gems.rb b/tool/test/test_sync_default_gems.rb index 625007ca06..8e667fc4d2 100755 --- a/tool/test/test_sync_default_gems.rb +++ b/tool/test/test_sync_default_gems.rb @@ -78,15 +78,7 @@ module Test_SyncDefaultGems def setup super @target = nil - begin - git_version = IO.popen(%W"git --version", &:read) - rescue Errno::ENOENT - pend "No git" - else - v = git_version.scan(/\d+/).map(&:to_i) - # GIT_CONFIG_GLOBAL is supported since 2.32. - pend "#{git_version} is too old" if (v <=> [2, 32]) < 0 - end + pend "No git" unless system("git --version", out: IO::NULL) @testdir = Dir.mktmpdir("sync") @git_config = ENV["GIT_CONFIG_GLOBAL"] ENV["GIT_CONFIG_GLOBAL"] = @testdir + "/gitconfig" |