diff options
| author | Xu Cheng | 2015-09-01 16:52:15 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-09-02 15:24:52 +0800 |
| commit | 71f794260b8ea0312b5a733095e2856c9a4719bb (patch) | |
| tree | 4d64bb145154e606fe16789fc40e2cb0fbe5279d /Library/Homebrew/utils.rb | |
| parent | 370df177c46e9f13415b2da99b868fe56546764c (diff) | |
| download | brew-71f794260b8ea0312b5a733095e2856c9a4719bb.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 84e2363ca..867c747f8 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -5,6 +5,7 @@ require "utils/json" require "utils/inreplace" require "utils/popen" require "utils/fork" +require "utils/git" require "open-uri" class Tty |
