Merge pull request #11303 from issyl0/docs-fix-head-hash-syntax

docs/Formula-Cookbook: Fix outdated HEAD hash syntax
This commit is contained in:
Issy Long 2021-05-02 17:48:09 +01:00 committed by GitHub
commit a81a76b196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -577,10 +577,9 @@ To use a specific commit, tag, or branch from a repository, specify [`head`](htt
```ruby
class Foo < Formula
head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13"
# or :branch => "develop" (the default is "master")
# or :tag => "1_0_release",
# :revision => "090930930295adslfknsdfsdaffnasd13"
head "https://github.com/some/package.git", revision: "090930930295adslfknsdfsdaffnasd13"
# or branch: "main" (the default is "master")
# or tag: "1_0_release", revision: "090930930295adslfknsdfsdaffnasd13"
end
```