(value: &str)
| 39 | } |
| 40 | |
| 41 | fn shell_quote(value: &str) -> String { |
| 42 | if value |
| 43 | .chars() |
| 44 | .all(|c| c.is_ascii_alphanumeric() || matches!(c, '/' | '.' | '-' | '_' | ':' | '=' | '@')) |
| 45 | { |
| 46 | value.to_string() |
| 47 | } else { |
| 48 | format!("'{}'", value.replace('\'', "'\\''")) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | fn build_remote_git_command(repository_path: &str, args: &[String]) -> String { |
| 53 | let mut parts = vec![ |
no test coverage detected