brew-test-bot: tweak pull request diff detection.
Avoid accidentally including more changes than was intentional.
This commit is contained in:
parent
a094dbe2bb
commit
cd528e7203
@ -237,7 +237,6 @@ module Homebrew
|
|||||||
diff_end_sha1 = current_sha1
|
diff_end_sha1 = current_sha1
|
||||||
elsif @url
|
elsif @url
|
||||||
test "brew", "update" if current_branch == "master"
|
test "brew", "update" if current_branch == "master"
|
||||||
diff_start_sha1 = current_sha1
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Handle Jenkins pull request builder plugin.
|
# Handle Jenkins pull request builder plugin.
|
||||||
@ -259,7 +258,8 @@ module Homebrew
|
|||||||
diff_end_sha1 = @hash
|
diff_end_sha1 = @hash
|
||||||
@name = @hash
|
@name = @hash
|
||||||
elsif @url
|
elsif @url
|
||||||
test "git", "checkout", current_sha1
|
diff_start_sha1 = current_sha1
|
||||||
|
test "git", "checkout", diff_start_sha1
|
||||||
test "brew", "pull", "--clean", @url
|
test "brew", "pull", "--clean", @url
|
||||||
diff_end_sha1 = current_sha1
|
diff_end_sha1 = current_sha1
|
||||||
@short_url = @url.gsub('https://github.com/', '')
|
@short_url = @url.gsub('https://github.com/', '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user