From 91df36e67cad534bcd606836fd20cd41ecdcc6ba Mon Sep 17 00:00:00 2001 From: J Rob Gant Date: Thu, 10 Dec 2020 11:14:30 -0500 Subject: [PATCH] Check for both shallow clones at the same time. --- Library/Homebrew/cmd/update.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index d557ad2f3..111644907 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -390,6 +390,22 @@ EOS fi fi + if [[ -f "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-core/.git/shallow" && + -f "$HOMEBREW_LIBRARY/Taps/homebrew/homebrew-cask/.git/shallow" ]] + then + odie <