소스 검색

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