1
0
Fork 0

Fix: Bitbucket getChangeDate throws exception for branches containing a slash

pull/8134/head
Stephan Vock 2019-04-30 16:38:03 +01:00 committed by Rob
parent de0251953d
commit e37ffb2a44
1 changed files with 7 additions and 0 deletions

View File

@ -218,6 +218,13 @@ abstract class BitbucketDriver extends VcsDriver
return $this->fallbackDriver->getChangeDate($identifier);
}
if (strpos($identifier, '/') !== false) {
$branches = $this->getBranches();
if (isset($branches[$identifier])) {
$identifier = $branches[$identifier];
}
}
$resource = sprintf(
'https://api.bitbucket.org/2.0/repositories/%s/%s/commit/%s?fields=date',
$this->owner,