test-bot: fix --no-pull flag.

This commit is contained in:
Mike McQuaid 2016-07-14 10:57:12 +01:00
parent 84c12f9eb1
commit 9aa4362eb4

View File

@ -355,7 +355,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 || !ARGV.include?("--no-pull")
if !travis_pr && !ARGV.include?("--no-pull")
diff_start_sha1 = current_sha1
test "brew", "pull", "--clean", @url
diff_end_sha1 = current_sha1