test-bot: don't pull if unnecessary (take two).
This commit is contained in:
parent
0e90549104
commit
849ec0f411
@ -354,7 +354,7 @@ module Homebrew
|
||||
elsif @url
|
||||
# TODO: in future Travis CI may need to also use `brew pull` to e.g. push
|
||||
# the right commit to BrewTestBot.
|
||||
if !travis_pr || ENV["ghprbActualCommit"].chomp != `git rev-parse HEAD`
|
||||
if !travis_pr || `git rev-parse #{ENV["sha1"]}` != `git rev-parse HEAD`
|
||||
diff_start_sha1 = current_sha1
|
||||
test "brew", "pull", "--clean", @url
|
||||
diff_end_sha1 = current_sha1
|
||||
|
Loading…
x
Reference in New Issue
Block a user