aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 71d44d380..cbd05d185 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -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}^"