Damnable tabs!
parent
2cb07dd2fe
commit
1442c1e026
|
@ -350,14 +350,14 @@ class GitHubDriver extends VcsDriver
|
||||||
|
|
||||||
protected function authorizeOAuth()
|
protected function authorizeOAuth()
|
||||||
{
|
{
|
||||||
// If available use token from git config
|
// If available use token from git config
|
||||||
exec('git config github.accesstoken', $output, $returnCode);
|
exec('git config github.accesstoken', $output, $returnCode);
|
||||||
if ($returnCode === 0 && !empty($output[0]))
|
if ($returnCode === 0 && !empty($output[0]))
|
||||||
{
|
{
|
||||||
$this->io->write('Using Github OAuth token stored in git config (github.accesstoken)');
|
$this->io->write('Using Github OAuth token stored in git config (github.accesstoken)');
|
||||||
$this->io->setAuthorization($this->originUrl, $output[0], 'x-oauth-basic');
|
$this->io->setAuthorization($this->originUrl, $output[0], 'x-oauth-basic');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$attemptCounter = 0;
|
$attemptCounter = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue