GitRequirement: use Utils.git_available?
`which("git")` will return incorrect result for OS X without Xcode/CLT installed, where `/usr/bin/git` is a stub. Closes Homebrew/homebrew#46386. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
fd44154645
commit
e07adf1619
@ -122,6 +122,6 @@ end
|
||||
class GitRequirement < Requirement
|
||||
fatal true
|
||||
default_formula "git"
|
||||
satisfy { !!which("git") }
|
||||
satisfy { Utils.git_available? }
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user