Avoid creating empty bitbucket files if there was no composer.json present in the original branch/tag
parent
7a301d9ad1
commit
61cd8664e5
|
@ -124,6 +124,7 @@ abstract class BitbucketDriver extends VcsDriver
|
|||
|
||||
$composer = $this->getBaseComposerInformation($identifier);
|
||||
|
||||
if ($composer) {
|
||||
// specials for bitbucket
|
||||
if (!isset($composer['support']['source'])) {
|
||||
$label = array_search(
|
||||
|
@ -169,6 +170,7 @@ abstract class BitbucketDriver extends VcsDriver
|
|||
if (!isset($composer['homepage'])) {
|
||||
$composer['homepage'] = empty($this->website) ? $this->homeUrl : $this->website;
|
||||
}
|
||||
}
|
||||
|
||||
$this->infoCache[$identifier] = $composer;
|
||||
|
||||
|
|
|
@ -152,8 +152,8 @@ class GitHubDriver extends VcsDriver
|
|||
}
|
||||
|
||||
$composer = $this->getBaseComposerInformation($identifier);
|
||||
if ($composer) {
|
||||
|
||||
if ($composer) {
|
||||
// specials for github
|
||||
if (!isset($composer['support']['source'])) {
|
||||
$label = array_search($identifier, $this->getTags()) ?: array_search($identifier, $this->getBranches()) ?: $identifier;
|
||||
|
|
Loading…
Reference in New Issue