1
0
Fork 0

Merge pull request #529 from holger/master

Enable local git repositories
pull/531/merge
Jordi Boggiano 2012-04-05 02:35:59 -07:00
commit b141ba4322
1 changed files with 1 additions and 1 deletions

View File

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