diff options
| author | Mike McQuaid | 2013-05-26 01:39:59 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-05-26 01:39:59 +0100 |
| commit | aecdcf768b17cf218c8c539efb87f7afda7ca4b8 (patch) | |
| tree | ea2ffa2660b89d260d9c7080fbe4b46fa11736fd /Library | |
| parent | 1856f8eadf68cb69195dac95ac79857485789b74 (diff) | |
| download | brew-aecdcf768b17cf218c8c539efb87f7afda7ca4b8.tar.bz2 | |
brew-test-bot: don't repeat SHA-1 if identical.
Diffstat (limited to 'Library')
| -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}^" |
