diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index f1f64adc5f..581ba6a0e7 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -383,9 +383,7 @@ EOS ! -x "$HOMEBREW_PREFIX/opt/git/bin/git" ]] then ohai "Installing Homebrew Git" - [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git - unset GIT_EXECUTABLE - if ! git --version &>/dev/null + if [[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && ! brew install git then odie "Git must be installed and in your PATH!" fi