1
0
Fork 0

Function proc_open doesn't accept a scheme for the current working directory, therefore stripped 'file://' for local repositories.

pull/529/head
Holger Rüprich 2012-04-04 20:28:47 +02:00
parent a3fa19a716
commit 9e2c523faa
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) . '/';