brew-test-bot: tweak pull request diff detection.

Avoid accidentally including more changes than was intentional.
This commit is contained in:
Mike McQuaid 2014-10-26 12:33:43 +00:00
parent a094dbe2bb
commit cd528e7203

View File

@ -237,7 +237,6 @@ module Homebrew
diff_end_sha1 = current_sha1
elsif @url
test "brew", "update" if current_branch == "master"
diff_start_sha1 = current_sha1
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/', '')