|
|
|
@ -90,6 +90,10 @@ class GitDownloader extends VcsDownloader
|
|
|
|
|
*/
|
|
|
|
|
protected function cleanChanges($path, $update)
|
|
|
|
|
{
|
|
|
|
|
if (!$changes = $this->getLocalChanges($path)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$discardChanges = $this->config->get('discard-changes');
|
|
|
|
|
if (!$this->io->isInteractive()) {
|
|
|
|
|
switch ($discardChanges) {
|
|
|
|
@ -109,10 +113,6 @@ class GitDownloader extends VcsDownloader
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$changes = $this->getLocalChanges($path)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$changes = array_map(function ($elem) {
|
|
|
|
|
return ' '.$elem;
|
|
|
|
|
}, preg_split('{\s*\r?\n\s*}', $changes));
|
|
|
|
|