1
0
Fork 0

Avoid clearing the error output during removeDirectory execution, losing git error output, fixes #8351

pull/8401/head
Jordi Boggiano 2019-10-30 10:45:40 +01:00
parent 6a335a459c
commit ae9cc3db58
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 1 deletions

View File

@ -215,10 +215,12 @@ class Git
}
}
$errorMsg = $this->process->getErrorOutput();
if ($initialClone) {
$this->filesystem->removeDirectory($origCwd);
}
$this->throwException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(), $url);
$this->throwException('Failed to execute ' . $command . "\n\n" . $errorMsg, $url);
}
}