Fix linuxbrew-core migration not applying to Linuxbrew/homebrew-core
This commit is contained in:
parent
3373a82d22
commit
6fa70337e3
@ -554,7 +554,7 @@ Your Git executable: $(unset git && type -p ${HOMEBREW_GIT})"
|
||||
unset HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH
|
||||
|
||||
HOMEBREW_CORE_REPOSITORY_ORIGIN="$("${HOMEBREW_GIT}" -C "${HOMEBREW_CORE_REPOSITORY}" remote get-url origin 2>/dev/null)"
|
||||
if [[ "${HOMEBREW_CORE_REPOSITORY_ORIGIN}" =~ /linuxbrew-core(\.git)?$ ]]
|
||||
if [[ "${HOMEBREW_CORE_REPOSITORY_ORIGIN}" =~ (/linuxbrew|Linuxbrew/homebrew)-core(\.git)?$ ]]
|
||||
then
|
||||
# triggers migration code in update.sh
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
@ -827,7 +827,7 @@ class CoreTap < Tap
|
||||
# @private
|
||||
sig { returns(T::Boolean) }
|
||||
def linuxbrew_core?
|
||||
remote_repo.to_s.end_with?("/linuxbrew-core")
|
||||
remote_repo.to_s.end_with?("/linuxbrew-core") || remote_repo == "Linuxbrew/homebrew-core"
|
||||
end
|
||||
|
||||
# @private
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user