From aecdcf768b17cf218c8c539efb87f7afda7ca4b8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 26 May 2013 01:39:59 +0100 Subject: [PATCH] brew-test-bot: don't repeat SHA-1 if identical. --- Library/Contributions/cmd/brew-test-bot.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 71d44d380b..cbd05d185f 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}^"