From 60cb841ddb5135aea977e294089ff4f56143a30e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 28 May 2016 20:12:00 +0100 Subject: [PATCH] pull: remove legacy retry block. --- Library/Homebrew/cmd/pull.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 47c9fed74b..0aca8a1ec5 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -190,15 +190,7 @@ module Homebrew "https://github.com/BrewTestBot/homebrew-#{tap.repo}/compare/homebrew:master...pr-#{issue}" end - bottle_commit_fallbacked = false - begin - curl "--silent", "--fail", "-o", "/dev/null", "-I", bottle_commit_url - rescue ErrorDuringExecution - raise if bottle_commit_fallbacked - bottle_commit_url = "https://github.com/BrewTestBot/homebrew/compare/homebrew:master...pr-#{issue}" - bottle_commit_fallbacked = true - retry - end + curl "--silent", "--fail", "-o", "/dev/null", "-I", bottle_commit_url safe_system "git", "checkout", "--quiet", "-B", bottle_branch, orig_revision pull_patch bottle_commit_url, "bottle commit"