Skip to main content

run_git_command

Function run_git_command 

Source
pub async fn run_git_command<I, S>(
    args: I,
    current_dir: Option<&PathBuf>,
) -> Result<String, DownloadError>
where I: IntoIterator<Item = S> + Clone, S: AsRef<OsStr>,
Expand description

Run a git command with the given arguments in the given directory.

The function output is parsed as a UTF-8 string and returned.