test(server): default mainRepoRoot to null in primitive test helper

Same root cause as 16cf9edf — checkout-git emits mainRepoRoot directly,
so the helper must initialize it to null or downstream isWorktree
derivation flips to true on undefined !== null.
This commit is contained in:
Mohamed Boudra
2026-04-26 22:18:32 +07:00
parent 16cf9edfb1
commit 8a025a6c78
@@ -59,6 +59,7 @@ function createCheckoutStatus(
return {
isGit: true,
repoRoot: cwd,
mainRepoRoot: null,
currentBranch: "main",
isDirty: false,
baseRef: "main",