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.
This commit is contained in:
paseo-bot[bot]
2026-10-15 01:43:24 +02:00
parent 30a472c599
commit 05d5713799
@@ -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");