diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 9bc38c9bf2..b5c1dccdd7 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -334,6 +334,8 @@ module Homebrew begin response = GitHub.create_fork(formula.tap.full_name) + # GitHub API responds immediately but fork takes a few seconds to be ready. + sleep 3 rescue *gh_api_errors => e formula.path.atomic_write(backup_file) unless ARGV.dry_run? odie "Unable to fork: #{e.message}!"