mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user