Skip to main content

run_git

Function run_git 

Source
pub(super) async fn run_git(cwd: &Path, args: &[&str]) -> GitOutput
Expand description

Spawn git <args> against cwd, await with a per-command timeout, return classified output. Failures log DEBUG with the captured stderr, so triage of “the GIT section shows nothing” can still tell “clean tree” from “corrupt index / fatal: …” without re-running, at a level that does not report a miss the probe makes on every scan of a perfectly ordinary repo.