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

brew-test-bot: don't repeat SHA-1 if identical.

parent 1856f8ea
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,11 @@ class Test
end
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
test "git checkout #{@hash}"
diff_start_sha1 = "#{@hash}^"
......
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