function GitDownloader::reapplyChanges
@inheritDoc
Overrides VcsDownloader::reapplyChanges
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ GitDownloader.php, line 415
Class
- GitDownloader
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\DownloaderCode
protected function reapplyChanges(string $path) : void {
$path = $this->normalizePath($path);
if (!empty($this->hasStashedChanges[$path])) {
unset($this->hasStashedChanges[$path]);
$this->io
->writeError(' <info>Re-applying stashed changes</info>');
if (0 !== $this->process
->execute([
'git',
'stash',
'pop',
], $output, $path)) {
throw new \RuntimeException("Failed to apply stashed changes:\n\n" . $this->process
->getErrorOutput());
}
}
unset($this->hasDiscardedChanges[$path]);
}