mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Oops
This commit is contained in:
parent
890baa2f89
commit
b6778cd7f6
1 changed files with 5 additions and 5 deletions
|
@ -321,13 +321,13 @@ abstract class BitbucketDriver extends VcsDriver
|
||||||
);
|
);
|
||||||
$hasNext = true;
|
$hasNext = true;
|
||||||
while ($hasNext) {
|
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);
|
$branchData = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
|
||||||
foreach ($branchData['values'] as $data) {
|
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'];
|
$this->branches[$data['name']] = $data['target']['hash'];
|
||||||
}
|
}
|
||||||
if (empty($branchData['next'])) {
|
if (empty($branchData['next'])) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue