Skip to main content

apply_to_git_command

Function apply_to_git_command 

Source
pub fn apply_to_git_command(cmd: &mut Command)
Expand description

Start a git child from the sanitized environment plus GIT_PASSTHROUGH_KEYS. Repository config (core.fsmonitor, hooks, filters, core.sshCommand) can make any git command run a program chosen by whoever wrote the workspace, so git must not hand that program the parent’s credentials.