(
state: &AppState,
target: &RemoteGitTarget,
args: &[String],
)
| 83 | } |
| 84 | |
| 85 | async fn execute_remote_git_success( |
| 86 | state: &AppState, |
| 87 | target: &RemoteGitTarget, |
| 88 | args: &[String], |
| 89 | ) -> Result<String, String> { |
| 90 | let output = execute_remote_git_command(state, target, args).await?; |
| 91 | if output.exit_code == 0 { |
| 92 | Ok(output.stdout) |
| 93 | } else { |
| 94 | let error = if output.stderr.trim().is_empty() { |
| 95 | output.stdout |
| 96 | } else { |
| 97 | output.stderr |
| 98 | }; |
| 99 | Err(error.trim().to_string()) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | async fn execute_remote_git_operation( |
| 104 | state: &AppState, |
no test coverage detected