Documentation
¶
Overview ¶
Package gitutil provides hermetic Git subprocess construction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HermeticGitCommand ¶
HermeticGitCommand constructs a Git command without repository-local environment variables inherited from a parent Git hook. Those variables take precedence over cmd.Dir and `git -C`, which can make a nested command operate on the repository whose hook is running instead of its explicit target.
func WithoutLocalEnv ¶
WithoutLocalEnv removes the variables listed by `git rev-parse --local-env-vars`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.