Xu Cheng
e0e277ecde
utils/git: various improvement
...
* Use `ENV/scm/git` to check whether git is installed.
* Use `brew install git` to enforce pre-install checks such as sudo
check.
2016-03-21 19:07:38 +08:00
Xu Cheng
3638c057f0
FormulaInstaller: reset git_available? when installing git
...
Closes Homebrew/homebrew#43693
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-09 12:22:03 +08:00
Xu Cheng
c8efb05826
doctor: use Utils.git_available? instead of git?
2015-09-09 12:21:08 +08:00
Xu Cheng
4529df1246
git_available?: cache the result
2015-09-09 12:19:16 +08:00
Xu Cheng
71f794260b
add git utils
...
Two methods:
* `Utils.git_available?` checks whether git is installed.
* `Utils.ensure_git_installed!` installs git for users who don't install
Xcode or CLT.
2015-09-02 15:24:52 +08:00