(dir: &Path, args: &[&str])
| 19 | use crate::common; |
| 20 | |
| 21 | fn run_git(dir: &Path, args: &[&str]) { |
| 22 | let status = Command::new(common::git_program()) |
| 23 | .args(args) |
| 24 | .current_dir(dir) |
| 25 | .status() |
| 26 | .unwrap_or_else(|e| panic!("git {args:?} should spawn: {e}")); |
| 27 | assert!(status.success(), "git {args:?} should succeed"); |
| 28 | } |
| 29 | |
| 30 | /// Initializes a project repo (`main`) plus a linked worktree checked out on |
| 31 | /// `feature/session` under `base`. Returns `(project_root, worktree)`. |
no test coverage detected