From b6fb12ae9f49b57fb34fff971eccf3ca597e9460 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 3 Feb 2026 19:36:50 -0800 Subject: [PATCH] fix: branches fucking suck --- src/services/gitService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/gitService.ts b/src/services/gitService.ts index aa58423..c3813c3 100644 --- a/src/services/gitService.ts +++ b/src/services/gitService.ts @@ -345,7 +345,8 @@ const createOrUpdateBranch = async( const { path: repoPath } = clonedRepo; try { - await runGitCommand(logger, repoPath, "git fetch origin"); + // Use --prune to remove stale remote-tracking refs that no longer exist + await runGitCommand(logger, repoPath, "git fetch origin --prune"); const remoteBranches = await runGitCommand( logger, repoPath,