fix: set git user identity in test repos so commit-tree succeeds in CI
commit
c4ea795fix: set git user identity in test repos so commit-tree succeeds in CI
Assisted-by: Claude:claude-sonnet-4-6
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
crates/git-ents/src/testutil.rs
@@ -33,6 +33,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)
+ .args(["config", key, value])
+ .status()
+ .unwrap();
+ assert!(status.success());
+ }
dir
}