aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-11-26 19:55:18 +0800
committerXu Cheng2015-11-26 20:21:37 +0800
commite07adf16198f0cd89d61ab4e6b50348417949308 (patch)
treef184f71e7b6e7621fc3328990ac6d794322af5f3 /Library
parentfd4415464518f650b4d1294bd4f0534a25ee914f (diff)
downloadbrew-e07adf16198f0cd89d61ab4e6b50348417949308.tar.bz2
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index 017cf945e..843539a9a 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -122,6 +122,6 @@ end
class GitRequirement < Requirement
fatal true
default_formula "git"
- satisfy { !!which("git") }
+ satisfy { Utils.git_available? }
end