Fix: Bitbucket getChangeDate throws exception for branches containing a slash
parent
de0251953d
commit
e37ffb2a44
|
@ -218,6 +218,13 @@ abstract class BitbucketDriver extends VcsDriver
|
||||||
return $this->fallbackDriver->getChangeDate($identifier);
|
return $this->fallbackDriver->getChangeDate($identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strpos($identifier, '/') !== false) {
|
||||||
|
$branches = $this->getBranches();
|
||||||
|
if (isset($branches[$identifier])) {
|
||||||
|
$identifier = $branches[$identifier];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$resource = sprintf(
|
$resource = sprintf(
|
||||||
'https://api.bitbucket.org/2.0/repositories/%s/%s/commit/%s?fields=date',
|
'https://api.bitbucket.org/2.0/repositories/%s/%s/commit/%s?fields=date',
|
||||||
$this->owner,
|
$this->owner,
|
||||||
|
|
Loading…
Reference in New Issue