1
0
Fork 0

Fix handling of git repos with no tag, fixes #146

pull/145/merge
Jordi Boggiano 2011-12-06 22:18:52 +01:00
parent 8de2c0604e
commit 139de0f79d
1 changed files with 1 additions and 1 deletions

View File

@ -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;