Merge pull request #5067 from sjackman/audit-head

audit: Permit HEAD for non-official taps
This commit is contained in:
Shaun Jackman 2018-10-08 21:29:30 -07:00 committed by GitHub
commit 7b13f4a402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,7 +642,7 @@ module Homebrew
end
end
if formula.head || formula.devel
if @official_tap && (formula.head || formula.devel)
unstable_spec_message = "Formulae should not have a `HEAD` or `devel` spec"
if @new_formula
new_formula_problem unstable_spec_message