(root: &Path, args: &[&str])
| 2227 | } |
| 2228 | |
| 2229 | fn git_ok(root: &Path, args: &[&str]) { |
| 2230 | let output = ProcessCommand::new("git") |
| 2231 | .arg("-C") |
| 2232 | .arg(root) |
| 2233 | .args(args) |
| 2234 | .output() |
| 2235 | .unwrap(); |
| 2236 | assert!( |
| 2237 | output.status.success(), |
| 2238 | "git {args:?} failed: {}", |
| 2239 | String::from_utf8_lossy(&output.stderr) |
| 2240 | ); |
| 2241 | } |
| 2242 | |
| 2243 | fn init_git(root: &Path) { |
| 2244 | git_ok(root, &["init", "-q"]); |
no test coverage detected