Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(refresh): give the race test's checkout a Git identity for the publish merge (#7686)
garrytan44f29db9eb2d
diff --git a/test/refresh-publish-diverged-7686.test.ts b/test/refresh-publish-diverged-7686.test.tsindex 85b5adc15c..634ba1099d 100644--- a/test/refresh-publish-diverged-7686.test.ts+++ b/test/refresh-publish-diverged-7686.test.ts@@ -240,6 +240,7 @@ test('setting on: a force-push that lands after the refresh checked the upstreamgit(f.upstream, 'checkout', '-q', '--detach', `${purged}~1`);commitFile(f.upstream, 'alpha/two.md', page('Alpha two', 'Rewritten upstream.'));const rewrite = git(f.upstream, 'rev-parse', 'HEAD').trim();+ git(f.root, 'config', 'user.name', 'Example'); git(f.root, 'config', 'user.email', '[email protected]');writeFileSync(join(f.root, 'beta/local.md'), page('Local', 'A local commit nobody pushed.'));git(f.root, 'add', 'beta/local.md'); git(f.root, 'commit', '-qm', 'local only');const racing = join(bin, `gbrain-race-${f.engine.kind}`);