Skip to content

Commit dff9dca

Browse files
committed
test(tooling): configure fixture identity in the commit command
1 parent 258c737 commit dff9dca

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

‎test/scripts/apple-release-source-check.test.ts‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,24 @@ function makeRepository(): { root: string; commit: string } {
1212
const root = mkdtempSync(path.join(tmpdir(), "openclaw-apple-release-source-"));
1313
tempDirs.push(root);
1414
execFileSync("git", ["init", "--quiet"], { cwd: root });
15-
execFileSync("git", ["config", "user.email", "[email protected]"], { cwd: root });
16-
execFileSync("git", ["config", "user.name", "OpenClaw Release Test"], { cwd: root });
1715
writeFileSync(path.join(root, "tracked.txt"), "clean\n", "utf8");
1816
execFileSync("git", ["add", "tracked.txt"], { cwd: root });
19-
execFileSync("git", ["-c", "commit.gpgsign=false", "commit", "--quiet", "-m", "initial"], {
20-
cwd: root,
21-
});
17+
execFileSync(
18+
"git",
19+
[
20+
"-c",
21+
"commit.gpgsign=false",
22+
"-c",
23+
24+
"-c",
25+
"user.name=OpenClaw Release Test",
26+
"commit",
27+
"--quiet",
28+
"-m",
29+
"initial",
30+
],
31+
{ cwd: root },
32+
);
2233
const commit = execFileSync("git", ["rev-parse", "HEAD"], {
2334
cwd: root,
2435
encoding: "utf8",

0 commit comments

Comments
 (0)