1
0
Fork 0

fix-token-retrying-itself

pull/3651/head
Rob Bast 2015-01-19 17:28:27 +01:00
parent 4ca9e602a9
commit 296252330e
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ class RemoteFilesystem
{
if ($this->config && in_array($this->originUrl, $this->config->get('github-domains'), true)) {
$message = "\n".'Could not fetch '.$this->fileUrl.', enter your GitHub credentials '.($httpStatus === 404 ? 'to access private repos' : 'to go over the API rate limit');
$gitHubUtil = new GitHub($this->io, $this->config, null, $this);
$gitHubUtil = new GitHub($this->io, $this->config, null);
if (!$gitHubUtil->authorizeOAuth($this->originUrl)
&& (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message))
) {