aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 30cf94e13..d0da09575 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -258,7 +258,8 @@ EOS
if ! git --version >/dev/null 2>&1
then
- brew install git
+ # we cannot install brewed git if homebrew/core is unavailable.
+ [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git
if ! git --version >/dev/null 2>&1
then
odie "Git must be installed and in your PATH!"