Skip to main content

stamped_push_gate

Function stamped_push_gate 

Source
pub fn stamped_push_gate(check: &dyn Check) -> bool
Expand description

Is check a push gate that runs before git connects, and is stamped for it (ADR-0018)? A scoped one, or a declared heavy one whatever its scope: a * declaration can be any command, and one that runs for a minute on the open connection is the failure ADR-0018 exists to stop (#414). The built-in unscoped checks (branch-protect, secrets) are light and need the push’s own refs, so they stay in the hook; the dependency audits answer through their own record.