Skip to main content

git_cmd

Function git_cmd 

Source
pub fn git_cmd(repo: &Path) -> Command
Expand description

Base git command scoped to repo via -C. Stdin null + env vars prevent any interactive prompt from opening /dev/tty: GIT_TERMINAL_PROMPT=0 — disables git’s own credential prompts GIT_SSH_COMMAND — BatchMode=yes + ConnectTimeout=5 so SSH fails fast