aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-05-10 20:46:39 +0200
committerMarkus Reiter2017-05-22 02:01:57 +0200
commit798af254667f6488cc6a1bb554f423d88f2a7b22 (patch)
tree26a0894a6ca5c003c8f50d3c44038491c702e3c1 /Library
parent330307b01a37ea514ec747ebab7a99dd47b79e7c (diff)
downloadbrew-798af254667f6488cc6a1bb554f423d88f2a7b22.tar.bz2
Don’t run checksum check if no commit range is given.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/audit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/audit.rb b/Library/Homebrew/cask/lib/hbc/audit.rb
index 8b88394c4..6569da126 100644
--- a/Library/Homebrew/cask/lib/hbc/audit.rb
+++ b/Library/Homebrew/cask/lib/hbc/audit.rb
@@ -66,6 +66,7 @@ module Hbc
tap = Tap.select { |t| t.cask_file?(@cask.sourcefile_path) }.first
return if tap.nil?
+ return if commit_range.nil?
previous_cask_contents = Git.last_revision_of_file(tap.path, @cask.sourcefile_path, before_commit: commit_range)
return if previous_cask_contents.empty?