From dac60313e2cb7dd44de1d47051b1b956c970c457 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Sun, 17 May 2026 01:06:06 -0400 Subject: [PATCH] fix(windows): treat root-equivalent show-cdup as non-nested --- get-shit-done/bin/lib/init.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get-shit-done/bin/lib/init.cjs b/get-shit-done/bin/lib/init.cjs index 596268c9d..d06ffd547 100644 --- a/get-shit-done/bin/lib/init.cjs +++ b/get-shit-done/bin/lib/init.cjs @@ -105,7 +105,8 @@ function getInitGitState(cwd) { try { const cdupResult = execGit(['rev-parse', '--show-cdup'], { cwd, timeout: 5000 }); if (cdupResult.exitCode === 0) { - inNestedSubdir = String(cdupResult.stdout || '').trim().length > 0; + const cdup = String(cdupResult.stdout || '').trim().replace(/\\/g, '/'); + inNestedSubdir = cdup.length > 0 && cdup !== '.' && cdup !== './'; } else { inNestedSubdir = worktreeRoot !== null; }