diff options
| author | Mike McQuaid | 2016-07-14 10:53:35 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-14 10:53:35 +0100 |
| commit | 849ec0f4111577076b8dd1b177058e66cb93e46b (patch) | |
| tree | 1729326a3f607405651623bfb2e4f0914ca22303 /Library | |
| parent | 0e9054910478a9b8340808b74fcb2645195f5a2b (diff) | |
| download | brew-849ec0f4111577076b8dd1b177058e66cb93e46b.tar.bz2 | |
test-bot: don't pull if unnecessary (take two).
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/test-bot.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb index 9bb7162f9..c70e83b89 100644 --- a/Library/Homebrew/dev-cmd/test-bot.rb +++ b/Library/Homebrew/dev-cmd/test-bot.rb @@ -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 |
