Always reset stash change, refs #1254

main
Jordi Boggiano 12 years ago
parent cd284733ef
commit a7cc5f187f

@ -153,11 +153,11 @@ class GitDownloader extends VcsDownloader
protected function reapplyChanges($path) protected function reapplyChanges($path)
{ {
if ($this->hasStashedChanges) { if ($this->hasStashedChanges) {
$this->hasStashedChanges = false;
$this->io->write(' <info>Re-applying stashed changes'); $this->io->write(' <info>Re-applying stashed changes');
if (0 !== $this->process->execute('git stash pop', $output, $path)) { if (0 !== $this->process->execute('git stash pop', $output, $path)) {
throw new \RuntimeException("Failed to apply stashed changes:\n\n".$this->process->getErrorOutput()); throw new \RuntimeException("Failed to apply stashed changes:\n\n".$this->process->getErrorOutput());
} }
$this->hasStashedChanges = false;
} }
} }

Loading…
Cancel
Save