浏览代码

Reset the errorOutput before attempting to run command

Dave Marshall 13 年之前
父节点
当前提交
cb3548c64c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Util/ProcessExecutor.php

+ 1 - 0
src/Composer/Util/ProcessExecutor.php

@@ -33,6 +33,7 @@ class ProcessExecutor
     public function execute($command, &$output = null)
     {
         $captureOutput = count(func_get_args()) > 1;
+        $this->errorOutput = null;
         $process = new Process($command, null, null, null, static::getTimeout());
         $process->run(function($type, $buffer) use ($captureOutput) {
             if ($captureOutput) {