diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index a903dd1838..ee88b2cc94 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -253,9 +253,9 @@ EOS INITIAL_BRANCH="$(git symbolic-ref --short HEAD 2>/dev/null)" if [[ "${INITIAL_BRANCH}" == "master" && - ("${DIR}" == "${HOMEBREW_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CASK_REPOSITORY}") ]] + ("${DIR}" == "${HOMEBREW_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CORE_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CASK_REPOSITORY}") ]] then - # Migrate master to main for Homebrew/brew or Homebrew/homebrew-cask + # Migrate master to main for Homebrew/brew, homebrew-core or homebrew-cask INITIAL_BRANCH="main" SOFT_DELETE_MASTER="1" fi