From efc5088f85137658f16d7487fcd33e5d638ee275 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 15 Feb 2023 03:44:44 +0000 Subject: [PATCH] formulary: fix git clone handling for API formulae --- Library/Homebrew/formulary.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 301ed9a1fa..af0b3df0a7 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -155,7 +155,8 @@ module Formulary if (urls_stable = json_formula["urls"]["stable"]).present? stable do - url urls_stable["url"] + url_spec = { tag: urls_stable["tag"], revision: urls_stable["revision"] }.compact + url urls_stable["url"], **url_spec version json_formula["versions"]["stable"] sha256 urls_stable["checksum"] if urls_stable["checksum"].present? end