fix-token-retrying-itself
parent
4ca9e602a9
commit
296252330e
|
@ -343,7 +343,7 @@ class RemoteFilesystem
|
||||||
{
|
{
|
||||||
if ($this->config && in_array($this->originUrl, $this->config->get('github-domains'), true)) {
|
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');
|
$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)
|
if (!$gitHubUtil->authorizeOAuth($this->originUrl)
|
||||||
&& (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message))
|
&& (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message))
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue