(path: &Path)
| 8595 | } |
| 8596 | |
| 8597 | fn init_git_repo(path: &Path) { |
| 8598 | let mut command = Command::new("git"); |
| 8599 | super::scrub_git_env(&mut command); |
| 8600 | let status = command |
| 8601 | .args(["init"]) |
| 8602 | .current_dir(path) |
| 8603 | .status() |
| 8604 | .expect("git init"); |
| 8605 | assert!(status.success(), "git init should succeed"); |
| 8606 | } |
| 8607 | |
| 8608 | #[test] |
| 8609 | fn git_sync_files_scopes_single_file_to_requested_path() { |