Skip to content
Snippets Groups Projects
Unverified Commit 7375fcb6 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #8486 from reitermarkus/debug-git

Fix “Git is unavailable” error.
parents b14bc285 a6bd784f
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,14 @@ module Utils
if CoreTap.instance.installed?
begin
oh1 "Installing #{Formatter.identifier("git")}"
safe_system HOMEBREW_BREW_FILE, "install", "git"
clear_available_cache
# 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"
clear_available_cache
end
rescue
raise "Git is unavailable"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment