Skip to main content

try_git_cmd

Function try_git_cmd 

Source
pub fn try_git_cmd(
    url: Option<&str>,
    args: &[&str],
    label: &str,
    ssh_policy: Option<SshHostKeyPolicy>,
) -> bool
Expand description

Try a git CLI command via git_cmd_safe, returning true on success. On failure, logs the stderr via tracing::debug and returns false.