MCPcopy Create free account
hub / github.com/GCWing/BitFun / execute_remote_git_command

Function execute_remote_git_command

src/apps/desktop/src/api/git_api.rs:63–83  ·  view source on GitHub ↗
(
    state: &AppState,
    target: &RemoteGitTarget,
    args: &[String],
)

Source from the content-addressed store, hash-verified

61}
62
63async 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
85async fn execute_remote_git_success(
86 state: &AppState,

Callers 3

git_is_repositoryFunction · 0.85

Calls 3

build_remote_git_commandFunction · 0.85
get_ssh_manager_asyncMethod · 0.80
execute_commandMethod · 0.45

Tested by

no test coverage detected