diff --git a/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts b/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts index e871e4bdaa6..5c6772fb098 100644 --- a/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts +++ b/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts @@ -60,8 +60,8 @@ export async function getStatusNoLock(repoPath: string): Promise { // Run git status with --no-optional-locks to avoid holding locks // Use porcelain=v1 for machine-parseable output, -b for branch info // Use -z for NUL-terminated output (handles filenames with special chars) - // Use -M for rename detection (otherwise renames show as delete + add) // Use -uall to show individual files in untracked directories (not just the directory) + // Note: porcelain=v1 already includes rename info (R/C status codes) without needing -M const { stdout } = await execFileAsync( "git", [ @@ -72,7 +72,6 @@ export async function getStatusNoLock(repoPath: string): Promise { "--porcelain=v1", "-b", "-z", - "-M", "-uall", ], { env, timeout: 30_000 },