From d03fb4804c01c6974fedd937f73531be815876a7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 25 Feb 2012 04:18:23 +0100 Subject: [PATCH] Fix local repo detection --- src/Composer/Repository/Vcs/GitDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/GitDriver.php b/src/Composer/Repository/Vcs/GitDriver.php index b6cb29bb4..d6c49daf2 100644 --- a/src/Composer/Repository/Vcs/GitDriver.php +++ b/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; } }