Revert "Test sync_default_gems.rb only when git 2.32 is available"
This reverts commit b0f44cfa5da53b90817732cb25b4d3a1cddecb89.
This commit is contained in:
parent
7a7aba755d
commit
4b91d6abb9
@ -78,15 +78,7 @@ module Test_SyncDefaultGems
|
|||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
@target = nil
|
@target = nil
|
||||||
begin
|
pend "No git" unless system("git --version", out: IO::NULL)
|
||||||
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
|
|
||||||
@testdir = Dir.mktmpdir("sync")
|
@testdir = Dir.mktmpdir("sync")
|
||||||
@git_config = ENV["GIT_CONFIG_GLOBAL"]
|
@git_config = ENV["GIT_CONFIG_GLOBAL"]
|
||||||
ENV["GIT_CONFIG_GLOBAL"] = @testdir + "/gitconfig"
|
ENV["GIT_CONFIG_GLOBAL"] = @testdir + "/gitconfig"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user