tap: ensure git is installed

Closes Homebrew/homebrew#43463.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-09-01 16:57:54 +08:00
parent 03f7e19ca6
commit 190902e98f

View File

@ -19,6 +19,9 @@ module Homebrew
end
def install_tap(user, repo, clone_target = nil)
# ensure git is installed
Utils.ensure_git_installed!
tap = Tap.new user, repo
return false if tap.installed?
ohai "Tapping #{tap}"