Use process executor instead of exec to run git config
parent
1442c1e026
commit
5fb0403276
|
@ -351,9 +351,7 @@ 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]))
|
||||
{
|
||||
if (0 === $this->process->execute('git config github.accesstoken', $output)) {
|
||||
$this->io->write('Using Github OAuth token stored in git config (github.accesstoken)');
|
||||
$this->io->setAuthorization($this->originUrl, $output[0], 'x-oauth-basic');
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue