From 4d91066ad75d4228d59eb7b790dbf3bf664f9d72 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 23:00:07 +0200 Subject: [PATCH] test(worktrees): make fork fixture line endings deterministic Windows Git converts the fixture checkout to CRLF when core.autocrlf is enabled. Set the repository fixture to preserve its written LF bytes so the content assertion checks the fetched patch on every platform. Reproduced the failure locally with inherited core.autocrlf=true and verified the corrected setup against that same configuration. --- packages/server/src/utils/worktree.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/utils/worktree.test.ts b/packages/server/src/utils/worktree.test.ts index bc14b0257b..a10ddf9cfc 100644 --- a/packages/server/src/utils/worktree.test.ts +++ b/packages/server/src/utils/worktree.test.ts @@ -112,6 +112,7 @@ describe("paseo worktree manager", () => { async ({ existing, preferred, expected }) => { const git = (...args: string[]) => execFileSync("git", args, { cwd: repoDir, encoding: "utf8", stdio: "pipe" }).trim(); + git("config", "core.autocrlf", "false"); const baseHead = git("rev-parse", "main"); for (const branch of existing) git("branch", branch); git("checkout", "-b", "fixture-pr");