Преглед на файлове

Fixed the check for local git repositories

Christophe Coevoet преди 13 години
родител
ревизия
c2d3c0509c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/Composer/Repository/Vcs/GitDriver.php

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

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