aboutsummaryrefslogtreecommitdiff
path: root/config/config_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 08:05:51 +0800
committerGravatar Runxi Yu2026-03-06 10:00:35 +0800
commite15054a4f93fc54806e84aa7036e60168e78e823 (patch)
treeb576dcb1d3368324e7ca73ca0fe79dd8865c5524 /config/config_test.go
parentinternal/intconv: Add Uint32ToUint8 (diff)
signatureNo signature
format/commitgraph: Add initial commit-graph support
Diffstat (limited to 'config/config_test.go')
-rw-r--r--config/config_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 8301d294..8364b264 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -34,11 +34,7 @@ func gitConfigGetE(testRepo *testgit.TestRepo, key string) (string, error) {
//nolint:noctx
cmd := exec.Command("git", "config", "--get", key) //#nosec G204
cmd.Dir = testRepo.Dir()
-
- cmd.Env = append(os.Environ(),
- "GIT_CONFIG_GLOBAL=/dev/null",
- "GIT_CONFIG_SYSTEM=/dev/null",
- )
+ cmd.Env = testRepo.Env()
out, err := cmd.CombinedOutput()
return strings.TrimSpace(string(out)), err