diff options
| author | Mike McQuaid | 2013-05-26 01:39:59 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-26 01:39:59 +0100 |
| commit | 3e262a61605d8a635b67e29023de2134a2a8ea9d (patch) | |
| tree | 955c8d3798b1a793c1e001182f197fdca6181df7 /Library/Contributions/cmd | |
| parent | 8cff32939fd29e399c0a040beb4d00619cb2ae9a (diff) | |
| download | homebrew-3e262a61605d8a635b67e29023de2134a2a8ea9d.tar.bz2 | |
brew-test-bot: don't repeat SHA-1 if identical.
Diffstat (limited to 'Library/Contributions/cmd')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 6 |
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}^" |
