Explorar o código

* do not use getSvnCommand (since we are not in object context)
* run non interacive instead of piping output to /dev/null

till %!s(int64=13) %!d(string=hai) anos
pai
achega
6f364a85b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/Vcs/SvnDriver.php

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

@@ -327,7 +327,7 @@ class SvnDriver extends VcsDriver
         $processExecutor = new ProcessExecutor();
 
         $exit = $processExecutor->execute(
-            $this->getSvnCommand('svn info', $url, '2>/dev/null'),
+            "svn info --non-interactive {$url}",
             $ignoredOutput
         );
         return $exit === 0;