fix: set a git identity in the shared test-fixture repo
commit
7da0aadfix: set a git identity in the shared test-fixture repo
CI runners have no global user.name/user.email, so any commit-tree built on git_store::test_support::repo() failed there while passing locally. Every other test fixture already configures one; this one didn’t.
Assisted-by: Claude:claude-sonnet-5
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
crates/git-store/src/lib.rs
@@ -598,6 +598,15 @@
.status()
.unwrap();
assert!(status.success());
+ for (key, value) in [("user.email", "test@example.com"), ("user.name", "test")] {
+ let status = Command::new("git")
+ .arg("-C")
+ .arg(dir.path())
+ .args(["config", key, value])
+ .status()
+ .unwrap();
+ assert!(status.success());
+ }
dir
}