Explorar o código

Merge pull request #529 from holger/master

Enable local git repositories
Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
b141ba4322
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/Vcs/GitDriver.php

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

@@ -39,7 +39,7 @@ class GitDriver extends VcsDriver
     public function initialize()
     {
         if (static::isLocalUrl($this->url)) {
-            $this->repoDir = $this->url;
+            $this->repoDir = str_replace('file://', '', $this->url);
         } else {
             $this->repoDir = sys_get_temp_dir() . '/composer-' . preg_replace('{[^a-z0-9.]}i', '-', $this->url) . '/';