diff --git a/src/git.test.ts b/src/git.test.ts index 7019fa0..48ac13e 100644 --- a/src/git.test.ts +++ b/src/git.test.ts @@ -45,7 +45,9 @@ test("second sync resets cleanly (fetch+reset path)", async () => { const client = new ChildProcessGitClient({ baseDir: base }); await client.syncClone({ url: bare, branch: "main" }); await client.writeFiles([{ repoPath: "_posts/second.md", data: "x" }]); - await client.commitAndPush({ message: "second", branch: "main" }); + // Pass an explicit author so the test does not depend on an ambient git + // identity (a bare CI runner has none and `git commit` would fail). + await client.commitAndPush({ message: "second", branch: "main", authorName: "t", authorEmail: "t@t" }); const verify = join(root, "verify2"); execFileSync("git", ["clone", bare, verify]); expect(readFileSync(join(verify, "_posts/second.md"), "utf8")).toBe("x");