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:
@@ -59,6 +59,7 @@ function createCheckoutStatus(
|
|||||||
return {
|
return {
|
||||||
isGit: true,
|
isGit: true,
|
||||||
repoRoot: cwd,
|
repoRoot: cwd,
|
||||||
|
mainRepoRoot: null,
|
||||||
currentBranch: "main",
|
currentBranch: "main",
|
||||||
isDirty: false,
|
isDirty: false,
|
||||||
baseRef: "main",
|
baseRef: "main",
|
||||||
|
|||||||
Reference in New Issue
Block a user