(project_dir: &PathBuf, config_item: &str, config_value: &str)
| 13 | } |
| 14 | |
| 15 | pub fn set_config(project_dir: &PathBuf, config_item: &str, config_value: &str) -> bool { |
| 16 | Command::new("git") |
| 17 | .current_dir(project_dir) |
| 18 | .arg("config") |
| 19 | .arg(config_item) |
| 20 | .arg(config_value) |
| 21 | .stdout(Stdio::null()) |
| 22 | .status() |
| 23 | .expect("failed to execute process") |
| 24 | .success() |
| 25 | } |