mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
Revert "Test sync_default_gems.rb only when git 2.32 is available"
This reverts commit b0f44cfa5d
.
This commit is contained in:
parent
7a7aba755d
commit
4b91d6abb9
1 changed files with 1 additions and 9 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue