From 05d5713799044c987026d11033ae7da7b564cd39 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 71b3d63785..82505dc800 100644 --- a/packages/server/src/utils/worktree.test.ts +++ b/packages/server/src/utils/worktree.test.ts @@ -113,6 +113,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");