From 98b8c69d60879fe221e85387c39437ef189825e2 Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Mon, 5 Jan 2026 20:17:35 +0000 Subject: [PATCH] fix: ensure fetch succeeds before branch setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes git("fetch") to gitOrFail("fetch") to prevent silent failures that could lead to reviewing stale code or unclear errors during branch checkout/reset operations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- scripts/claude-assistant/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/claude-assistant/index.ts b/scripts/claude-assistant/index.ts index 9963bd4a..fa78ac46 100644 --- a/scripts/claude-assistant/index.ts +++ b/scripts/claude-assistant/index.ts @@ -122,7 +122,7 @@ function setupFixBranch(ctx: Context): void { } // Fetch latest to ensure we have the PR branch - git("fetch", "origin", ctx.headBranch); + gitOrFail("fetch", "origin", ctx.headBranch); // Check if branch already exists if (branchExists(ctx.fixBranch)) {