From 71cf49671132a7d301dbf27b1a6cd808494a58fc Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Sun, 14 Dec 2025 19:33:01 -0500 Subject: [PATCH] Replace executeCommand with executeGitWithFallback for git fetch operations --- backend/src/services/repo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/services/repo.ts b/backend/src/services/repo.ts index f1a8885d..be62e726 100644 --- a/backend/src/services/repo.ts +++ b/backend/src/services/repo.ts @@ -231,7 +231,7 @@ export async function cloneRepo( const baseRepoPath = path.resolve(getReposPath(), baseRepoDirName) const worktreePath = path.resolve(getReposPath(), worktreeDirName) - await executeCommand(['git', '-C', baseRepoPath, 'fetch', '--all'], { env }) + await executeGitWithFallback(['git', '-C', baseRepoPath, 'fetch', '--all'], { cwd: getReposPath(), env }) await createWorktreeSafely(baseRepoPath, worktreePath, branch) @@ -297,7 +297,7 @@ export async function cloneRepo( if (branch) { logger.info(`Switching to branch: ${branch}`) - await executeCommand(['git', '-C', path.resolve(getReposPath(), baseRepoDirName), 'fetch', '--all'], { env }) + await executeGitWithFallback(['git', '-C', path.resolve(getReposPath(), baseRepoDirName), 'fetch', '--all'], { cwd: getReposPath(), env }) let remoteBranchExists = false