diff options
| author | Mike McQuaid | 2014-10-26 12:33:43 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-26 12:34:09 +0000 |
| commit | cd528e7203b649795113c7adc013f09a3b1aab73 (patch) | |
| tree | f72725fc69cee49371af2620247f5d8d3a108d8f /Library | |
| parent | a094dbe2bbfa50a171de837fcad53ef50e819b3c (diff) | |
| download | brew-cd528e7203b649795113c7adc013f09a3b1aab73.tar.bz2 | |
brew-test-bot: tweak pull request diff detection.
Avoid accidentally including more changes than was intentional.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/test-bot.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index 742fda12d..518abc0cc 100644 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -236,8 +236,7 @@ module Homebrew test "brew", "update" if current_branch == "master" diff_end_sha1 = current_sha1 elsif @url - test "brew", "update" if current_branch == "master" - diff_start_sha1 = current_sha1 + test "brew", "update" if current_branch == "master" end # Handle Jenkins pull request builder plugin. @@ -259,7 +258,8 @@ module Homebrew diff_end_sha1 = @hash @name = @hash elsif @url - test "git", "checkout", current_sha1 + diff_start_sha1 = current_sha1 + test "git", "checkout", diff_start_sha1 test "brew", "pull", "--clean", @url diff_end_sha1 = current_sha1 @short_url = @url.gsub('https://github.com/', '') |
