Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
test(cli): initialize hook fixtures without Git templates
Samir Hanna Verza9001402bb4dd
diff --git a/crates/ai-memory-cli/tests/suite/packaging.rs b/crates/ai-memory-cli/tests/suite/packaging.rsindex 623f56d3..d4d9bfe7 100644--- a/crates/ai-memory-cli/tests/suite/packaging.rs+++ b/crates/ai-memory-cli/tests/suite/packaging.rs@@ -1857,8 +1857,13 @@ impl PrePushFixture {fixture_toplevel: String::new(),_guard: guard,};- fixture.git(&fixture.hook_repo, &["init", "-q"]);- fixture.git(&fixture.fixture_repo, &["init", "-q"]);+ // Do not depend on installed Git templates: relocatable Git binaries+ // can lose their template path through the fixture's tool symlink.+ // Tests that seed a user hook need its directory before installation.+ // https://git-scm.com/docs/git-init#_template_directory+ fixture.git(&fixture.hook_repo, &["init", "-q", "--template="]);+ fixture.git(&fixture.fixture_repo, &["init", "-q", "--template="]);+ std::fs::create_dir_all(fixture.hook.parent().unwrap()).unwrap();// Compare Git's own answers rather than Rust path strings: Git Bash// reports `C:/...` where Rust reports `C:\...`.fixture.hook_toplevel = fixture.git(&fixture.hook_repo, &["rev-parse", "--show-toplevel"]);