Explorar o código

Merge pull request #2562 from vuhl/master

Perforce Driver update - Handle spaces in path to Perforce client spec
Jordi Boggiano %!s(int64=11) %!d(string=hai) anos
pai
achega
11facc3f44
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Util/Perforce.php

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

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