1
0
Fork 0
pull/6356/head
Jordi Boggiano 2017-04-14 00:25:14 +02:00
parent 890baa2f89
commit b6778cd7f6
1 changed files with 5 additions and 5 deletions

View File

@ -321,13 +321,13 @@ abstract class BitbucketDriver extends VcsDriver
);
$hasNext = true;
while ($hasNext) {
// skip headless branches which seem to be deleted branches that bitbucket nevertheless returns in the API
if ($this->vcsType === 'hg' && empty($data['heads'])) {
continue;
}
$branchData = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
foreach ($branchData['values'] as $data) {
// skip headless branches which seem to be deleted branches that bitbucket nevertheless returns in the API
if ($this->vcsType === 'hg' && empty($data['heads'])) {
continue;
}
$this->branches[$data['name']] = $data['target']['hash'];
}
if (empty($branchData['next'])) {