浏览代码

Fix local repo detection

Jordi Boggiano 13 年之前
父节点
当前提交
d03fb4804c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

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

@@ -200,7 +200,7 @@ class GitDriver extends VcsDriver implements VcsDriverInterface
         if (static::isLocalUrl($url)) {
             $process = new ProcessExecutor();
             // check whether there is a git repo in that path
-            if ($process->execute(sprintf('cd %s && git show', escapeshellarg($url)), $output) === 0) {
+            if ($process->execute(sprintf('cd %s && git tag', escapeshellarg($url)), $output) === 0) {
                 return true;
             }
         }