1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Damnable tabs!

This commit is contained in:
Wes Mason 2012-10-21 10:02:33 +01:00
parent 2cb07dd2fe
commit 1442c1e026

View file

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