aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-11-16 09:03:20 +0000
committerMike McQuaid2016-11-16 09:03:20 +0000
commit31caa8ef93a5742383b198095668e532eefa4b21 (patch)
tree8117c4f2391722a210de10af3240be0d9050b338 /Library/Homebrew/dev-cmd
parent34f08a9512f86a37af5e95b83f47f5d69c92998c (diff)
downloadbrew-31caa8ef93a5742383b198095668e532eefa4b21.tar.bz2
audit: only check previous formula version.
For calculating the stable/devel versions this should be sufficient as it's looking at `origin/master` so for a e.g. unmerged pull request this will stop complaining about mistakes outside the pull request itself. This will silence all warnings for historic version mistakes (i.e. before these audit checks were all enabled) which is normally a bad thing but as this case would rely on modifying history to complete is a good one.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 6c21c25de..b083b237c 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -661,7 +661,7 @@ class FormulaAuditor
return unless formula.tap.git? # git log is required
return if @new_formula
- fv = FormulaVersions.new(formula, max_depth: 10)
+ fv = FormulaVersions.new(formula, max_depth: 1)
attributes = [:revision, :version_scheme]
attributes_map = fv.version_attributes_map(attributes, "origin/master")