Browse Source

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

Jordi Boggiano 13 years ago
parent
commit
139de0f79d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/GitDriver.php

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