Unset HOMEBREW_TEST_GENERIC_OS
when installing Git.
This commit is contained in:
parent
b14bc2857b
commit
a6bd784f55
@ -93,8 +93,14 @@ module Utils
|
|||||||
if CoreTap.instance.installed?
|
if CoreTap.instance.installed?
|
||||||
begin
|
begin
|
||||||
oh1 "Installing #{Formatter.identifier("git")}"
|
oh1 "Installing #{Formatter.identifier("git")}"
|
||||||
|
|
||||||
|
# We need to unset `HOMEBREW_TEST_GENERIC_OS`, otherwise `git` will be
|
||||||
|
# installed from source in tests that need it. This is slow and will
|
||||||
|
# also likely fail due to `OS::Linux` and `OS::Mac` being undefined.
|
||||||
|
with_env "HOMEBREW_TEST_GENERIC_OS" => nil do
|
||||||
safe_system HOMEBREW_BREW_FILE, "install", "git"
|
safe_system HOMEBREW_BREW_FILE, "install", "git"
|
||||||
clear_available_cache
|
clear_available_cache
|
||||||
|
end
|
||||||
rescue
|
rescue
|
||||||
raise "Git is unavailable"
|
raise "Git is unavailable"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user