fix(commands): surface core fetch errors, run post-install in the project, exit 1 on invalid project command; document compat flow
This commit is contained in:
@@ -36,7 +36,12 @@ final class CoreProvider
|
||||
throw new ToolboxException('No se pudo clonar el core: ' . implode("\n", $out));
|
||||
}
|
||||
} else {
|
||||
exec('git -C ' . escapeshellarg($dir) . ' fetch -q --tags 2>&1');
|
||||
exec('git -C ' . escapeshellarg($dir) . ' remote set-url origin ' . escapeshellarg($url) . ' 2>&1');
|
||||
$out = [];
|
||||
exec('git -C ' . escapeshellarg($dir) . ' fetch -q --tags 2>&1', $out, $code);
|
||||
if ($code !== 0) {
|
||||
throw new ToolboxException('No se pudo actualizar el core: ' . implode("\n", $out));
|
||||
}
|
||||
}
|
||||
|
||||
$provider = new self($dir);
|
||||
|
||||
Reference in New Issue
Block a user