Documentation
¶
Overview ¶
Package gitenv quiets git for tests that create repositories in a TempDir.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableAutoMaintenance ¶
func DisableAutoMaintenance()
DisableAutoMaintenance turns off git's automatic maintenance and gc for every git child process of the calling test binary. Call it from TestMain.
Newer git (2.47+) detaches `git maintenance run --auto` after commands such as commit; the background process can still be writing under .git when the test's TempDir is removed, failing the test with "directory not empty". GIT_CONFIG_* only reaches git processes, so nothing else in the test changes.
Types ¶
This section is empty.