aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-09-01 16:56:29 +0800
committerXu Cheng2015-09-02 15:24:53 +0800
commit03f7e19ca68ffbb1976633bd4138753fd3f76898 (patch)
tree9dac6eb04668597c0cf141cc0355cbda820b8edb
parentfaa6334774d5014cb869bf2a421ed5c633edd6d1 (diff)
downloadbrew-03f7e19ca68ffbb1976633bd4138753fd3f76898.tar.bz2
update: ensure git is installed
-rw-r--r--Library/Homebrew/cmd/update.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index c6247765f..33678db3a 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -12,6 +12,9 @@ module Homebrew
EOS
end
+ # ensure git is installed
+ Utils.ensure_git_installed!
+
# ensure GIT_CONFIG is unset as we need to operate on .git/config
ENV.delete("GIT_CONFIG")