瀏覽代碼

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

till 13 年之前
父節點
當前提交
6f364a85b3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;