aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-05-26 01:39:59 +0100
committerMike McQuaid2013-05-26 01:39:59 +0100
commitaecdcf768b17cf218c8c539efb87f7afda7ca4b8 (patch)
treeea2ffa2660b89d260d9c7080fbe4b46fa11736fd
parent1856f8eadf68cb69195dac95ac79857485789b74 (diff)
downloadbrew-aecdcf768b17cf218c8c539efb87f7afda7ca4b8.tar.bz2
brew-test-bot: don't repeat SHA-1 if identical.
-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}^"