1
0
Fork 0

Fix edge case in bitbucket driver

pull/5636/merge
Jordi Boggiano 2016-12-09 18:05:17 +01:00
parent e54c7478ee
commit 9d3e3ca486
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ abstract class BitbucketDriver extends VcsDriver
} catch (TransportException $e) {
$bitbucketUtil = new Bitbucket($this->io, $this->config, $this->process, $this->remoteFilesystem);
if (403 === $e->getCode()) {
if (403 === $e->getCode() || (401 === $e->getCode() && strpos($e->getMessage(), 'Could not authenticate against') === 0)) {
if (!$this->io->hasAuthentication($this->originUrl)
&& $bitbucketUtil->authorizeOAuth($this->originUrl)
) {