(root: &Path, args: &[&str])
| 130 | } |
| 131 | |
| 132 | fn git_ok(root: &Path, args: &[&str]) -> String { |
| 133 | let output = git(root, args); |
| 134 | assert!( |
| 135 | output.status.success(), |
| 136 | "git {args:?} failed: {}", |
| 137 | String::from_utf8_lossy(&output.stderr) |
| 138 | ); |
| 139 | String::from_utf8(output.stdout).expect("utf8 git output") |
| 140 | } |
| 141 | |
| 142 | fn key_file(home: &Path) -> PathBuf { |
| 143 | let mut secret = [0u8; 32]; |