Skip to main content

scrub_git_env_std

Function scrub_git_env_std 

Source
pub fn scrub_git_env_std(command: &mut Command)
Expand description

Synchronous-Command variant of scrub_git_env. nb-api uses tokio::process::Command for every nb invocation, but git_rev_parse (the only direct git spawn) uses std::process::Command. Both spawn sites must be scrubbed; if a future helper spawns git synchronously, use this overload.

ยงExample

use std::process::Command;
nb_api::scrub_git_env_std(&mut Command::new("git"));