From 4736d3df1a60a09178c13cb3a58d06dbf357656a Mon Sep 17 00:00:00 2001 From: Anton Arnaudov Date: Thu, 15 Oct 2026 01:48:02 +0300 Subject: [PATCH] test(git-service): an unreadable gitfile is refused in either of git's words Newer git says "gitfile does not point to a valid repository" where older git said "not a git repository"; the Windows runner's git now says the former. Co-Authored-By: Claude Opus 5.5 --- packages/git-service/test/refProvider.listing.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/git-service/test/refProvider.listing.test.ts b/packages/git-service/test/refProvider.listing.test.ts index c81f4aca..501cdda9 100644 --- a/packages/git-service/test/refProvider.listing.test.ts +++ b/packages/git-service/test/refProvider.listing.test.ts @@ -280,7 +280,7 @@ test("getHead over a .git git cannot read fails with git's reason rather than ca writeFileSync(join(dir, ".git"), "gitdir: ./nowhere\n"); const proc = new GitProcess({ cwd: dir }); try { - await assert.rejects(new RefProvider(proc).getHead(), /not a git repository/); + await assert.rejects(new RefProvider(proc).getHead(), /not a git repository|does not point to a valid repository/); } finally { proc.dispose(); }