diff options
| author | Mike McQuaid | 2013-09-14 12:33:53 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-14 12:33:53 +0100 |
| commit | 7535ba3be475674748f588cf21d2feea2951dff4 (patch) | |
| tree | 1bfe217986ba6315e10d7417e412acee7c9a1557 | |
| parent | 07142a2a325ad8a2bb5249a22fa25c3e0e0e45a3 (diff) | |
| download | brew-7535ba3be475674748f588cf21d2feea2951dff4.tar.bz2 | |
brew-test-bot: pull no args check into a method.
| -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 e728c9fba..2b0b5e014 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -134,6 +134,10 @@ class Test FileUtils.mkdir_p @brewbot_root end + def no_args? + @hash == 'HEAD' + end + def git arguments Dir.chdir HOMEBREW_REPOSITORY do `git #{arguments}` @@ -186,7 +190,7 @@ class Test end end - if @hash == 'HEAD' + if no_args? if diff_start_sha1 == diff_end_sha1 or \ single_commit?(diff_start_sha1, diff_end_sha1) @name = diff_end_sha1 |
