Merge pull request #16095 from EricFromCanada/fix-fetch-head

cmd/fetch: restore --HEAD functionality
This commit is contained in:
Eric Knibbe 2023-10-07 19:54:04 -04:00 committed by GitHub
commit eef9f84a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ module Homebrew
os_arch_combinations.each do |os, arch|
SimulateSystem.with os: os, arch: arch do
Formulary.clear_cache
formula = Formulary.factory(ref)
formula = Formulary.factory(ref, args.HEAD? ? :head : :stable)
formula.print_tap_action verb: "Fetching"