| 86 | /// fail, like `symbolic-ref` on a detached HEAD). |
| 87 | #[allow(dead_code)] |
| 88 | fn git_probe(root: &Path, args: &[&str]) -> Output { |
| 89 | Command::new("git") |
| 90 | .args(args) |
| 91 | .current_dir(root) |
| 92 | .env("GIT_AUTHOR_NAME", "CB-8A Tests") |
| 93 | .env("GIT_AUTHOR_EMAIL", "cb8a@example.com") |
| 94 | .env("GIT_COMMITTER_NAME", "CB-8A Tests") |
| 95 | .env("GIT_COMMITTER_EMAIL", "cb8a@example.com") |
| 96 | .output() |
| 97 | .expect("run git") |
| 98 | } |
| 99 | |
| 100 | /// Colocated fixture: a Git repository imported into Atomic with an active |
| 101 | /// shadow sync (RFC §6.1: one conversion policy makes every layer equivalent). |