test-bot: fix bottle uploading

This commit is contained in:
Xu Cheng 2015-09-18 22:08:07 +08:00
parent 347a215361
commit 9e2c0601e3

View File

@ -795,7 +795,11 @@ module Homebrew
tag = pr ? "pr-#{pr}" : "testing-#{number}" tag = pr ? "pr-#{pr}" : "testing-#{number}"
safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}" safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}"
bintray_repo = Bintray.repository(tap.name) bintray_repo = if tap
Bintray.repository(tap)
else
Bintray.repository(tap.name)
end
bintray_repo_url = "https://api.bintray.com/packages/homebrew/#{bintray_repo}" bintray_repo_url = "https://api.bintray.com/packages/homebrew/#{bintray_repo}"
formula_packaged = {} formula_packaged = {}