Skip to main content

run_bounded_push

Function run_bounded_push 

Source
pub fn run_bounded_push(
    command: Command,
    patience: Patience,
    grace: Duration,
    environment: &[(OsString, OsString)],
) -> Result<PushAttempt, SingleFlightError>
Expand description

What: Run a push command to its end or its deadline and capture its interleaved output, after the reference locks that a killed Git left in its repository have been cleared when their holder is proven gone. Why: Every start of the wrapper’s own fetch and push, the repetitions of a push included, goes through here (push_lock_clearing.rs).

In TS you’d write (pseudocode):

async function runBoundedPush({ command, patience, grace, environment }): Promise<PushAttempt>;