1
0
Fork 0

Fix: undefined index name in VcsRepository

pull/7745/head
Stephan Vock 2018-10-24 13:42:40 +02:00
parent 7e2e231899
commit 23d37eebe6
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
continue; continue;
} }
if ($existingPackage = $this->findPackage($data['name'], $data['version_normalized'])) { $tagPackageName = isset($data['name']) ? $data['name'] : $this->packageName;
if ($existingPackage = $this->findPackage($tagPackageName, $data['version_normalized'])) {
if ($verbose) { if ($verbose) {
$this->io->writeError('<warning>Skipped tag '.$tag.', it conflicts with an another tag ('.$existingPackage->getPrettyVersion().') as both resolve to '.$data['version_normalized'].' internally</warning>'); $this->io->writeError('<warning>Skipped tag '.$tag.', it conflicts with an another tag ('.$existingPackage->getPrettyVersion().') as both resolve to '.$data['version_normalized'].' internally</warning>');
} }