Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(git_operations): give the diff regression test its own committer identity\n\nThe test failed in CI at the `git commit` fixture step and passed locally. The\ndifference is the container, not the code: `hermetic` closes the global and\nsystem config — which is its whole purpose — and CI's git then has no identity\nto fall back on, so `git commit` refuses with "Author identity unknown". macOS\ngit derives one from the system instead, which is why this could not be\nreproduced here (verified: the same commit under\n`GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_GLOBAL=/dev/null` succeeds locally).\n\nSet `user.email` / `user.name` in the repository itself, so the fixture does not\ndepend on whether the host's git can invent an identity. Both keys are on\n`ALLOWED_REPO_CONFIG`, so this does not trip the repository-config refusal the\nsurrounding tests exercise.\n

M3gA-Mindeeac9d7c00c9
diff --git a/src/openhuman/tools/impl/filesystem/git_operations_config_tests.rs b/src/openhuman/tools/impl/filesystem/git_operations_config_tests.rs
index e52af52109..ddb30306ff 100644
--- a/src/openhuman/tools/impl/filesystem/git_operations_config_tests.rs
+++ b/src/openhuman/tools/impl/filesystem/git_operations_config_tests.rs
@@ -494,6 +494,14 @@ async fn an_ordinary_repository_still_produces_a_diff() {
let tmp = TempDir::new().unwrap();
init_git_repo(tmp.path());
+ // A committer identity has to be set in the repository itself. `hermetic`
+ // closes the global and system config, which is the point of it — so on a
+ // CI container with no identity of its own `git commit` fails with
+ // "Author identity unknown". Both keys are on `ALLOWED_REPO_CONFIG`, so
+ // setting them does not trip the repository-config refusal.
+ set_config(tmp.path(), "user.email", "[email protected]");
+ set_config(tmp.path(), "user.name", "Test");
+
let tracked = tmp.path().join("tracked.txt");
std::fs::write(&tracked, "first\n").unwrap();
// `hermetic` closes the ambient git config the way the fixtures do —