| 80 | |
| 81 | #[allow(dead_code)] |
| 82 | fn git(root: &Path, args: &[&str]) { |
| 83 | let output = Command::new("git") |
| 84 | .arg("-C") |
| 85 | .arg(root) |
| 86 | .args(args) |
| 87 | .env("GIT_AUTHOR_DATE", "@1726732800 +0000") |
| 88 | .env("GIT_COMMITTER_DATE", "@1726732800 +0000") |
| 89 | .output() |
| 90 | .expect("run git"); |
| 91 | assert!( |
| 92 | output.status.success(), |
| 93 | "git {args:?} failed:\n{}", |
| 94 | String::from_utf8_lossy(&output.stderr) |
| 95 | ); |
| 96 | } |
| 97 | |
| 98 | /// A colocated Git + Atomic repository with an active shadow sync and the |
| 99 | /// recorded explicit opt-in — the state `atomic git shim cutover` |