aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-12-25 19:19:52 +0000
committerMike McQuaid2012-12-25 19:20:20 +0000
commit49ac4f2f6aff441c39109ce372c63f1466393a1a (patch)
treeb4164a25ea7024f60a01466bf6d42f473ccdd5f8 /Library
parentb4127c6e40b92b742d60f6879fe48e0cf02c7877 (diff)
downloadbrew-49ac4f2f6aff441c39109ce372c63f1466393a1a.tar.bz2
brew-test-bot: don't return success from git function
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmds/brew-test-bot.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Contributions/cmds/brew-test-bot.rb b/Library/Contributions/cmds/brew-test-bot.rb
index 03d42e4ee..2feaa2cb2 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__