(root: &std::path::Path, args: &[&str])
| 357 | } |
| 358 | |
| 359 | fn git_ok(root: &std::path::Path, args: &[&str]) -> String { |
| 360 | let output = ProcessCommand::new("git") |
| 361 | .arg("-C") |
| 362 | .arg(root) |
| 363 | .args(args) |
| 364 | .output() |
| 365 | .unwrap(); |
| 366 | assert!( |
| 367 | output.status.success(), |
| 368 | "git {args:?} failed: {}", |
| 369 | String::from_utf8_lossy(&output.stderr) |
| 370 | ); |
| 371 | String::from_utf8_lossy(&output.stdout).trim().to_string() |
| 372 | } |
| 373 | |
| 374 | // ------------------------------------------------------------------------- |
| 375 | // Shim enrollment gating (RFC §2 / CB-13C) |
no test coverage detected