(
state: &AppState,
target: &RemoteGitTarget,
args: &[String],
)
| 61 | } |
| 62 | |
| 63 | async fn execute_remote_git_command( |
| 64 | state: &AppState, |
| 65 | target: &RemoteGitTarget, |
| 66 | args: &[String], |
| 67 | ) -> Result<RemoteGitOutput, String> { |
| 68 | let manager = state |
| 69 | .get_ssh_manager_async() |
| 70 | .await |
| 71 | .map_err(|e| e.to_string())?; |
| 72 | let command = build_remote_git_command(&target.repository_path, args); |
| 73 | let (stdout, stderr, exit_code) = manager |
| 74 | .execute_command(&target.connection_id, &command) |
| 75 | .await |
| 76 | .map_err(|e| e.to_string())?; |
| 77 | |
| 78 | Ok(RemoteGitOutput { |
| 79 | stdout, |
| 80 | stderr, |
| 81 | exit_code, |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | async fn execute_remote_git_success( |
| 86 | state: &AppState, |
no test coverage detected