Skip to main content

disable_git_wrapper

Function disable_git_wrapper 

Source
pub fn disable_git_wrapper(helpers: &mut GitHelpers)
Expand description

Disable git wrapper.

§Thread Safety

This function modifies the process-wide PATH environment variable, which is inherently not thread-safe. If multiple threads were concurrently modifying PATH, there could be a TOCTOU (time-of-check-time-of-use) race condition. However, in Ralph’s usage, this function is only called from the main thread during controlled shutdown sequences, so this is acceptable in practice.