Merge pull request #20176 from Homebrew/migrate_core_main

cmd/update: improve homebrew-core `main` migration.
This commit is contained in:
Mike McQuaid 2025-06-27 08:28:04 +00:00 committed by GitHub
commit c9d3df2e54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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