brew-test-bot: don't return success from git function
This commit is contained in:
parent
b4127c6e40
commit
49ac4f2f6a
@ -115,21 +115,16 @@ class Test
|
|||||||
def git arguments
|
def git arguments
|
||||||
Dir.chdir HOMEBREW_REPOSITORY do
|
Dir.chdir HOMEBREW_REPOSITORY do
|
||||||
`git #{arguments}`
|
`git #{arguments}`
|
||||||
return $?.success?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def download
|
def download
|
||||||
def current_sha1
|
def current_sha1
|
||||||
Dir.chdir HOMEBREW_REPOSITORY do
|
git('rev-parse --short HEAD').strip
|
||||||
`git rev-parse --short HEAD`.strip
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_branch
|
def current_branch
|
||||||
Dir.chdir HOMEBREW_REPOSITORY do
|
git('symbolic-ref HEAD').gsub('refs/heads/', '').strip
|
||||||
`git symbolic-ref HEAD`.gsub('refs/heads/', '').strip
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@category = __method__
|
@category = __method__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user