function SvnDownloader::discardChanges
@phpstan-return PromiseInterface<void|null>
1 call to SvnDownloader::discardChanges()
- SvnDownloader::cleanChanges in vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php, line 236
Class
- SvnDownloader
- @author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net>
Namespace
Composer\DownloaderCode
protected function discardChanges(string $path) : PromiseInterface {
if (0 !== $this->process
->execute([
'svn',
'revert',
'-R',
'.',
], $output, $path)) {
throw new \RuntimeException("Could not reset changes\n\n:" . $this->process
->getErrorOutput());
}
return \React\Promise\resolve(null);
}