Merge remote-tracking branch 'origin/1.7'
commit
b441176f21
|
@ -189,6 +189,13 @@ abstract class BitbucketDriver extends VcsDriver
|
||||||
return $this->fallbackDriver->getFileContent($file, $identifier);
|
return $this->fallbackDriver->getFileContent($file, $identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strpos($identifier, '/') !== false) {
|
||||||
|
$branches = $this->getBranches();
|
||||||
|
if (isset($branches[$identifier])) {
|
||||||
|
$identifier = $branches[$identifier];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$resource = sprintf(
|
$resource = sprintf(
|
||||||
'https://api.bitbucket.org/1.0/repositories/%s/%s/raw/%s/%s',
|
'https://api.bitbucket.org/1.0/repositories/%s/%s/raw/%s/%s',
|
||||||
$this->owner,
|
$this->owner,
|
||||||
|
|
Loading…
Reference in New Issue