(root: &Path, args: &[&str])
| 498 | } |
| 499 | |
| 500 | fn git(root: &Path, args: &[&str]) -> String { |
| 501 | let output = Command::new("git") |
| 502 | .args(args) |
| 503 | .current_dir(root) |
| 504 | .output() |
| 505 | .unwrap(); |
| 506 | assert!( |
| 507 | output.status.success(), |
| 508 | "git {:?} failed: {}", |
| 509 | args, |
| 510 | String::from_utf8_lossy(&output.stderr) |
| 511 | ); |
| 512 | String::from_utf8(output.stdout).unwrap().trim().to_string() |
| 513 | } |
no test coverage detected