Skip to main content

cmd_with_env

Function cmd_with_env 

Source
pub fn cmd_with_env(
    dir: &Path,
    args: &[&str],
    env: &[(&str, &str)],
) -> Result<String, Error>
Expand description

Run a git command with extra environment variables.

When GIT_ASKPASS is present in env, credential helpers are disabled to prevent interception by system keychains.