(&self, work: &Path, args: &[&str])
| 77 | } |
| 78 | |
| 79 | fn git(&self, work: &Path, args: &[&str]) { |
| 80 | let output = Command::new("git") |
| 81 | .env_clear() |
| 82 | .env("PATH", std::env::var_os("PATH").unwrap()) |
| 83 | .env("HOME", self.home.path()) |
| 84 | .env("GIT_CONFIG_NOSYSTEM", "1") |
| 85 | .env("GIT_CONFIG_GLOBAL", "/dev/null") |
| 86 | .current_dir(work) |
| 87 | .args(args) |
| 88 | .output() |
| 89 | .expect("run git"); |
| 90 | assert!(output.status.success(), "git {args:?}: {output:?}"); |
| 91 | } |
| 92 | |
| 93 | fn linked_git_worktree(&self, atomic: bool) -> std::path::PathBuf { |
| 94 | let source = self.home.path().join("source"); |
no test coverage detected