aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-03-04 08:52:41 +0000
committerGitHub2017-03-04 08:52:41 +0000
commit56ee2460f154bd9832109b89f87242accec71e14 (patch)
tree6b0fc41970bcd09a804177c2db3760b53d0d0363 /Library
parent602755d1b7882a80371ef1f2762838bae75c8227 (diff)
parent8385f179dfc6dc056a248cb445627fa02f83f397 (diff)
downloadbrew-56ee2460f154bd9832109b89f87242accec71e14.tar.bz2
Merge pull request #2245 from jonchang/head-audit
audit: reject versions starting with HEAD
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index a8c18f7b6..90dd03c1c 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -755,6 +755,9 @@ class FormulaAuditor
if version.to_s !~ /\d/
problem "#{name}: version (#{version}) is set to a string without a digit"
end
+ if version.to_s.start_with?("HEAD")
+ problem "#{name}: non-HEAD version name (#{version}) should not begin with HEAD"
+ end
end
if formula.stable && formula.devel