mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20176 from Homebrew/migrate_core_main
cmd/update: improve homebrew-core `main` migration.
This commit is contained in:
commit
c9d3df2e54
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user