From aa596d3e6b9f83432dbcb0bc4e316eaa7d45f12c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 26 Jun 2025 12:13:48 +0100 Subject: [PATCH] cmd/update: improve homebrew-core `main` migration. Let's avoid people sticking on the master branch unnecessarily. --- Library/Homebrew/cmd/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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