Stop doing shallow clones on macOS self-hosted

This commit is contained in:
Shivam Mathur 2021-08-18 05:48:04 +05:30
parent 1cecc2cc99
commit c8b716540c
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -49,11 +49,11 @@ add_brew_tap() {
tap=$1
if ! [ -d "$tap_dir/$tap" ]; then
if [ "${runner:?}" = "self-hosted" ]; then
brew tap --shallow "$tap" >/dev/null 2>&1
brew tap "$tap" >/dev/null 2>&1
else
fetch_brew_tap "$tap" >/dev/null 2>&1
if ! [ -d "$tap_dir/$tap" ]; then
brew tap --shallow "$tap" >/dev/null 2>&1
brew tap "$tap" >/dev/null 2>&1
fi
fi
fi