瀏覽代碼

Merge pull request #2562 from vuhl/master

Perforce Driver update - Handle spaces in path to Perforce client spec
Jordi Boggiano 11 年之前
父節點
當前提交
11facc3f44
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Util/Perforce.php

+ 1 - 1
src/Composer/Util/Perforce.php

@@ -287,7 +287,7 @@ class Perforce
 
 
     public function connectClient()
     public function connectClient()
     {
     {
-        $p4CreateClientCommand = $this->generateP4Command('client -i < ' . $this->getP4ClientSpec());
+        $p4CreateClientCommand = $this->generateP4Command('client -i < ' . str_replace( " ", "\\ ", $this->getP4ClientSpec() ));
         $this->executeCommand($p4CreateClientCommand);
         $this->executeCommand($p4CreateClientCommand);
     }
     }