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 00b9af3efc0..181187026d5 100644 --- a/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts +++ b/apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts @@ -61,6 +61,7 @@ export async function getStatusNoLock(repoPath: string): Promise { // 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) const { stdout } = await execFileAsync( "git", [ @@ -72,6 +73,7 @@ export async function getStatusNoLock(repoPath: string): Promise { "-b", "-z", "-M", + "-uall", ], { env, timeout: 30_000 }, );