| 79 | } |
| 80 | |
| 81 | fn git(root: &Path, args: &[&str]) -> Output { |
| 82 | Command::new("git") |
| 83 | .args(args) |
| 84 | .current_dir(root) |
| 85 | // These fixtures compare commit OIDs. User/system signing and hooks |
| 86 | // configuration must not introduce signatures or mutate their commits. |
| 87 | .env("GIT_CONFIG_NOSYSTEM", "1") |
| 88 | .env("GIT_CONFIG_GLOBAL", "/dev/null") |
| 89 | .env("GIT_AUTHOR_NAME", "CB-13D Tests") |
| 90 | .env("GIT_AUTHOR_EMAIL", "cb13d@example.com") |
| 91 | .env("GIT_COMMITTER_NAME", "CB-13D Tests") |
| 92 | .env("GIT_COMMITTER_EMAIL", "cb13d@example.com") |
| 93 | // Deterministic commit identities (review R5): identical content in |
| 94 | // two fresh repositories produces identical commit OIDs, so ref |
| 95 | // *targets* can be compared across fixtures instead of being |
| 96 | // normalized away. |
| 97 | .env("GIT_AUTHOR_DATE", "2026-09-14T00:00:00Z") |
| 98 | .env("GIT_COMMITTER_DATE", "2026-09-14T00:00:00Z") |
| 99 | .output() |
| 100 | .expect("run git") |
| 101 | } |
| 102 | |
| 103 | /// Replace runs of base32 characters (Atomic state identities) with a |
| 104 | /// placeholder so cross-repository comparisons compare shapes, not |