mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cmd/update: improve homebrew-core main
migration.
Let's avoid people sticking on the master branch unnecessarily.
This commit is contained in:
parent
f649587d51
commit
aa596d3e6b
@ -253,9 +253,9 @@ EOS
|
|||||||
|
|
||||||
INITIAL_BRANCH="$(git symbolic-ref --short HEAD 2>/dev/null)"
|
INITIAL_BRANCH="$(git symbolic-ref --short HEAD 2>/dev/null)"
|
||||||
if [[ "${INITIAL_BRANCH}" == "master" &&
|
if [[ "${INITIAL_BRANCH}" == "master" &&
|
||||||
("${DIR}" == "${HOMEBREW_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CASK_REPOSITORY}") ]]
|
("${DIR}" == "${HOMEBREW_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CORE_REPOSITORY}" || "${DIR}" == "${HOMEBREW_CASK_REPOSITORY}") ]]
|
||||||
then
|
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"
|
INITIAL_BRANCH="main"
|
||||||
SOFT_DELETE_MASTER="1"
|
SOFT_DELETE_MASTER="1"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user