brew-test-bot: don't repeat SHA-1 if identical.
This commit is contained in:
parent
1856f8eadf
commit
aecdcf768b
@ -160,7 +160,11 @@ class Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
if @hash == 'HEAD'
|
if @hash == 'HEAD'
|
||||||
@name = "#{diff_start_sha1}-#{diff_end_sha1}"
|
if diff_start_sha1 == diff_end_sha1
|
||||||
|
@name = diff_end_sha1
|
||||||
|
else
|
||||||
|
@name = "#{diff_start_sha1}-#{diff_end_sha1}"
|
||||||
|
end
|
||||||
elsif @hash
|
elsif @hash
|
||||||
test "git checkout #{@hash}"
|
test "git checkout #{@hash}"
|
||||||
diff_start_sha1 = "#{@hash}^"
|
diff_start_sha1 = "#{@hash}^"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user