Merge pull request #3201 from MikeMcQuaid/git-coretap-tests
utils/git: don't fail when CoreTap is untapped.
This commit is contained in:
commit
a5b37e3b44
@ -49,14 +49,14 @@ module Utils
|
||||
return if git_available?
|
||||
|
||||
# we cannot install brewed git if homebrew/core is unavailable.
|
||||
raise "Git is unavailable" unless CoreTap.instance.installed?
|
||||
|
||||
if CoreTap.instance.installed?
|
||||
begin
|
||||
oh1 "Installing git"
|
||||
safe_system HOMEBREW_BREW_FILE, "install", "git"
|
||||
rescue
|
||||
raise "Git is unavailable"
|
||||
end
|
||||
end
|
||||
|
||||
clear_git_available_cache
|
||||
raise "Git is unavailable" unless git_available?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user