Documentation
¶
Overview ¶
Package testutil provides shared git test helpers for use across packages. It is not a _test.go file so it can be imported by test files in other packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chdir ¶
Chdir changes the working directory to dir for the duration of the test, restoring the original directory in t.Cleanup.
func InitBareAndClone ¶
InitBareAndClone creates a bare "remote" repo and clones it into a working directory. Returns (bare, clone) paths. The clone has an initial commit pushed to the remote and git identity configured.
func RunGitNoDir ¶
RunGitNoDir runs a git command in the current working directory, failing the test on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.