1
0
Fork 0

Merge pull request #7589 from pierredup/patch-2

Fix typo in variable name in GitHubDriver
pull/7454/head
Jordi Boggiano 2018-08-27 09:54:10 +02:00 committed by GitHub
commit bcf615ddc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ class GitHubDriver extends VcsDriver
return $this->attemptCloneFallback();
}
$rateLimited = $githubUtil->isRateLimited($e->getHeaders());
$rateLimited = $gitHubUtil->isRateLimited($e->getHeaders());
if (!$this->io->hasAuthentication($this->originUrl)) {
if (!$this->io->isInteractive()) {
@ -392,7 +392,7 @@ class GitHubDriver extends VcsDriver
}
if ($rateLimited) {
$rateLimit = $githubUtil->getRateLimit($e->getHeaders());
$rateLimit = $gitHubUtil->getRateLimit($e->getHeaders());
$this->io->writeError(sprintf(
'<error>GitHub API limit (%d calls/hr) is exhausted. You are already authorized so you have to wait until %s before doing more requests</error>',
$rateLimit['limit'],