Skip to main content

check_git_available

Function check_git_available 

Source
pub fn check_git_available() -> Result<()>
Expand description

Check whether git is available in PATH.

Binary-presence probe; the working directory has no effect on git --version, so this function deliberately has no _in sibling. The spawn is pinned to a guaranteed-existing dir so the probe survives an inherited cwd that was removed (see path_util::probe_dir).