Skip to main content

sgit

Function sgit 

Source
pub fn sgit(args: &[&str], config: &ValetConfig) -> Result<Output>
Expand description

Runs a git command against the valet bare repo + work-tree (does not check exit status).

Clears inherited git env vars (GIT_INDEX_FILE, GIT_DIR, etc.) to prevent the main repo’s state from leaking into the valet subprocess — especially critical when called from git hooks where these vars are set by git.