audit: Permit HEAD for non-official taps

This commit is contained in:
Shaun Jackman 2018-10-08 08:14:23 -07:00
parent c6acab66fe
commit 3f2803110a

View File

@ -642,7 +642,7 @@ module Homebrew
end end
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" unstable_spec_message = "Formulae should not have a `HEAD` or `devel` spec"
if @new_formula if @new_formula
new_formula_problem unstable_spec_message new_formula_problem unstable_spec_message