Skip to content

Commit 4e0c3e3

Browse files
author
Peter Steinberger
committed
test: skip nonportable pathspec fixture on Windows
1 parent 730dfcf commit 4e0c3e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/repair/target-validation.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5349,7 +5349,8 @@ test("checkpoint plumbing preserves staged CRLF restorations alongside review ed
53495349
});
53505350

53515351
test("checkpoint plumbing rejects a staged blob that disagrees with unchanged worktree", () => {
5352-
for (const source of ["source.txt", ":(exclude)*"]) {
5352+
const sources = process.platform === "win32" ? ["source.txt"] : ["source.txt", ":(exclude)*"];
5353+
for (const source of sources) {
53535354
const cwd = gitPackageFixture({ check: 'node -e ""' });
53545355
fs.writeFileSync(path.join(cwd, source), "validated content\n");
53555356
git(cwd, "add", ".");

0 commit comments

Comments
 (0)