aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2018-02-26 16:08:10 +0000
committerMike McQuaid2018-02-26 16:08:10 +0000
commit72f4d054189d746bb40db44b565ca9c42f25a7a6 (patch)
tree6abc5883ca4479c08506b01ae500dafa978ac4d0 /Library/Homebrew/cmd
parent650d6dbaac625a758881a215a35d8d4a248de5bf (diff)
downloadbrew-72f4d054189d746bb40db44b565ca9c42f25a7a6.tar.bz2
Handle a too old system Git on OS X 10.8 and below
Needed for GitHub since: https://github.com/blog/2507-weak-cryptographic-standards-removed
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 747784527..cc7a86cf3 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -390,7 +390,7 @@ EOS
brew install curl
fi
- if ! git --version >/dev/null 2>&1
+ if [[ -n "$HOMEBREW_SYSTEM_GIT_TOO_OLD" ]] || ! git --version >/dev/null 2>&1
then
# we cannot install brewed git if homebrew/core is unavailable.
[[ -d "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core" ]] && brew install git