Skip to content
Snippets Groups Projects
Commit cd528e72 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

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

Avoid accidentally including more changes than was intentional.
parent a094dbe2
No related branches found
No related tags found
No related merge requests found
......@@ -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/', '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment