Fix handling of git repos with no tag, fixes #146
parent
8de2c0604e
commit
139de0f79d
|
@ -117,7 +117,7 @@ class GitDriver implements VcsDriverInterface
|
|||
{
|
||||
if (null === $this->tags) {
|
||||
exec(sprintf('cd %s && git tag', escapeshellarg($this->tmpDir)), $output);
|
||||
$this->tags = array_combine($output, $output);
|
||||
$this->tags = $output ? array_combine($output, $output) : array();
|
||||
}
|
||||
|
||||
return $this->tags;
|
||||
|
|
Loading…
Reference in New Issue