bump-formula-pr: sleep for fork creation.

This commit is contained in:
Mike McQuaid 2018-04-08 15:37:16 -07:00 committed by GitHub
parent 1e0f9fb835
commit 010d593a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,6 +334,8 @@ module Homebrew
begin begin
response = GitHub.create_fork(formula.tap.full_name) 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 rescue *gh_api_errors => e
formula.path.atomic_write(backup_file) unless ARGV.dry_run? formula.path.atomic_write(backup_file) unless ARGV.dry_run?
odie "Unable to fork: #{e.message}!" odie "Unable to fork: #{e.message}!"