From 42a7ec7079e15bf2bde8431c998935ea562443db Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 1 Sep 2026 08:52:43 +1000 Subject: [PATCH 1/2] Suppressed the 'git init' initial branch advice in the installer output. --- .vortex/installer/src/Utils/FileManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vortex/installer/src/Utils/FileManager.php b/.vortex/installer/src/Utils/FileManager.php index 38d4b3169..ee28684bc 100644 --- a/.vortex/installer/src/Utils/FileManager.php +++ b/.vortex/installer/src/Utils/FileManager.php @@ -130,7 +130,9 @@ public function prepareDestination(): array { // The destination arrives from a CLI option, the environment or a config // file, so it is escaped rather than interpolated into the shell string. - $command = sprintf('git --work-tree=%s --git-dir=%s init > /dev/null', escapeshellarg($destination), escapeshellarg($destination . '/.git')); + // 'git init' writes the initial branch advice to stderr when + // 'init.defaultBranch' is unset, and passthru() draws it inside the TUI. + $command = sprintf('git -c advice.defaultBranchName=false --work-tree=%s --git-dir=%s init > /dev/null', escapeshellarg($destination), escapeshellarg($destination . '/.git')); passthru($command, $exit_code); if ($exit_code !== 0 || !File::exists($destination . '/.git')) { From 4368e34b875f7594fbedf7b088c5f4e60d273638 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 1 Sep 2026 08:52:48 +1000 Subject: [PATCH 2/2] Replaced the 'update-videos.php' fatal error with a message and exit code 1. --- .vortex/docs/.utils/update-videos.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vortex/docs/.utils/update-videos.php b/.vortex/docs/.utils/update-videos.php index d5c375c51..87d50b145 100755 --- a/.vortex/docs/.utils/update-videos.php +++ b/.vortex/docs/.utils/update-videos.php @@ -486,4 +486,13 @@ function main(array $argv): int { return 0; } -exit(main($argv)); +// A failure inside main() reports itself before it is thrown, so the message +// alone is the whole error. +try { + exit(main($argv)); +} +catch (Throwable $exception) { + fwrite(STDERR, $exception->getMessage() . "\n"); + + exit(1); +}