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

main
Jordi Boggiano 5 years ago
parent 6a335a459c
commit ae9cc3db58
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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);
}
}

Loading…
Cancel
Save