Skip to main content

safe_git_line

Function safe_git_line 

Source
pub(crate) async fn safe_git_line(dir: &str, args: &[&str]) -> Option<String>
Expand description

Run a read-only git command (rev-parse, remote get-url) in dir with the same safe settings and timeout as the status above: its trimmed stdout, or None on any failure.