From c0182938d37342194551445c48ee9b5c7648ab8f Mon Sep 17 00:00:00 2001 From: Scott Lovegrove Date: Sat, 4 Apr 2026 21:30:40 +0100 Subject: [PATCH] fix: Pull latest repo changes before running setup The bootstrap scripts skip git pull when the repo is already cloned, which can run stale setup scripts and cause failures (e.g. removed outline-cli npm link logic still executing). Co-Authored-By: Claude Opus 4.6 (1M context) --- install/bootstrap-mac.sh | 1 + install/bootstrap-windows.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/install/bootstrap-mac.sh b/install/bootstrap-mac.sh index 98b166f..eadd775 100644 --- a/install/bootstrap-mac.sh +++ b/install/bootstrap-mac.sh @@ -94,6 +94,7 @@ ensure_gh_auth() { clone_repo() { if [ -d "$TARGET_DIR/.git" ]; then say " - Repo already cloned at $TARGET_DIR" + run_quiet "Pulling latest changes" git -C "$TARGET_DIR" pull --rebase origin main return fi diff --git a/install/bootstrap-windows.ps1 b/install/bootstrap-windows.ps1 index 38f8024..5fcc698 100644 --- a/install/bootstrap-windows.ps1 +++ b/install/bootstrap-windows.ps1 @@ -95,6 +95,7 @@ function Ensure-GhAuth { function Clone-Repo { if (Test-Path (Join-Path $TargetDir '.git')) { Write-Host " - Repo already cloned at $TargetDir" + Run-Quiet -Step "Pulling latest changes" -Command "git" -Args @("-C", $TargetDir, "pull", "--rebase", "origin", "main") return }