test-bot: update diff_start_sha1 unconditionally
See bfab4b0e65db4667ab09159b1040701fa75ec687 Closes Homebrew/homebrew#44889. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
d877fc0b3e
commit
d1222971f6
@ -318,12 +318,13 @@ module Homebrew
|
||||
# Use Travis CI Git variables for master or branch jobs.
|
||||
elsif ENV["TRAVIS_COMMIT_RANGE"]
|
||||
diff_start_sha1, diff_end_sha1 = ENV["TRAVIS_COMMIT_RANGE"].split "..."
|
||||
diff_start_sha1 = git("merge-base", diff_start_sha1, diff_end_sha1).strip
|
||||
# Otherwise just use the current SHA-1 (which may be overriden later)
|
||||
else
|
||||
diff_end_sha1 = diff_start_sha1 = current_sha1
|
||||
end
|
||||
|
||||
diff_start_sha1 = git("merge-base", diff_start_sha1, diff_end_sha1).strip
|
||||
|
||||
# Handle no arguments being passed on the command-line e.g. `brew test-bot`.
|
||||
if no_args?
|
||||
if diff_start_sha1 == diff_end_sha1 || \
|
||||
|
Loading…
x
Reference in New Issue
Block a user