Skip to main content

probe_remote_stdout

Function probe_remote_stdout 

Source
pub fn probe_remote_stdout(args: &[&str], budget_secs: u64) -> (Probe, String)
Expand description

probe_remote, keeping what git printed on stdout.

For the callers that need the ANSWER and not only the exit code: land reads a remote tip with ls-remote, and a probe that discards stdout could say “connected” but never which commit. Same environment, same deadline, same separation of exit codes. The output is drained while the child runs, so a remote that advertises more than a pipe holds (64 KiB) does not block until the deadline.