(cwd: &Path, args: &[&str])
| 199 | use tempfile::tempdir; |
| 200 | |
| 201 | fn run_git(cwd: &Path, args: &[&str]) { |
| 202 | let status = git_command() |
| 203 | .args(args) |
| 204 | .current_dir(cwd) |
| 205 | .status() |
| 206 | .expect("git not on PATH — required for worktree tests"); |
| 207 | assert!(status.success(), "git {args:?} failed in {}", cwd.display()); |
| 208 | } |
| 209 | |
| 210 | #[test] |
| 211 | fn no_mismatch_outside_git() { |