Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: give the GST-1674 checkout a git identity before commit-push merges (CI runners have none)

garrytan4339a3333e57
diff --git a/test/refresh-barrier-gst1623.test.ts b/test/refresh-barrier-gst1623.test.ts
index ee46b57bb4..69b8b0d859 100644
--- a/test/refresh-barrier-gst1623.test.ts
+++ b/test/refresh-barrier-gst1623.test.ts
@@ -370,6 +370,7 @@ test('GST-1674: a plain-git commit landing on the pre-refresh commit right befor
expect(git(f.root, 'rev-parse', 'HEAD~1')).toBe(old);
expect(git(f.root, 'log', '-1', '--format=%s')).toBe('foreign');
expect((await f.refreshRows()).map(row => row.state)).toEqual(['aborted']);
+ git(f.root, 'config', 'user.name', 'Example'); git(f.root, 'config', 'user.email', '[email protected]');
commitAndPush({ repo: f.root, cwd: f.root, pushOnly: true, keepCheckout: true });
const done = await refreshWorktree(f.engine, f.alpha);
expect(done.status).toBe('completed');