Merge pull request #14637 from Bo98/api-git-clone

This commit is contained in:
Mike McQuaid 2023-02-15 07:25:46 +00:00 committed by GitHub
commit 17f19a85fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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