From 49ac4f2f6aff441c39109ce372c63f1466393a1a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 25 Dec 2012 19:19:52 +0000 Subject: [PATCH] brew-test-bot: don't return success from git function --- Library/Contributions/cmds/brew-test-bot.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb index 03d42e4eef..2feaa2cb21 100755 --- a/Library/Contributions/cmds/brew-test-bot.rb +++ b/Library/Contributions/cmds/brew-test-bot.rb @@ -115,21 +115,16 @@ class Test def git arguments Dir.chdir HOMEBREW_REPOSITORY do `git #{arguments}` - return $?.success? end end def download def current_sha1 - Dir.chdir HOMEBREW_REPOSITORY do - `git rev-parse --short HEAD`.strip - end + git('rev-parse --short HEAD').strip end def current_branch - Dir.chdir HOMEBREW_REPOSITORY do - `git symbolic-ref HEAD`.gsub('refs/heads/', '').strip - end + git('symbolic-ref HEAD').gsub('refs/heads/', '').strip end @category = __method__