1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Fixed the check for local git repositories

This commit is contained in:
Christophe Coevoet 2012-05-17 15:08:54 +02:00
parent 4404c5f287
commit c2d3c0509c

View file

@ -188,6 +188,7 @@ class GitDriver extends VcsDriver
// local filesystem
if (static::isLocalUrl($url)) {
$process = new ProcessExecutor();
$url = str_replace('file://', '', $url);
// check whether there is a git repo in that path
if ($process->execute('git tag', $output, $url) === 0) {
return true;