Merge pull request #15345 from ZhongRuoyu/update-report-no-origin

cmd/update-report: do not fail when tap has no origin
This commit is contained in:
Mike McQuaid 2023-05-02 12:20:10 +01:00 committed by GitHub
commit e62a839001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ module Homebrew
updated_taps = []
Tap.each do |tap|
next unless tap.git?
next if !tap.git? || tap.git_repo.origin_url.nil?
next if (tap.core_tap? || tap == "homebrew/cask") && !Homebrew::EnvConfig.no_install_from_api?
if ENV["HOMEBREW_MIGRATE_LINUXBREW_FORMULAE"].present? && tap.core_tap? &&