diff options
| author | 2026-03-06 08:05:51 +0800 | |
|---|---|---|
| committer | 2026-03-06 10:00:35 +0800 | |
| commit | e15054a4f93fc54806e84aa7036e60168e78e823 (patch) | |
| tree | b576dcb1d3368324e7ca73ca0fe79dd8865c5524 /internal/testgit/repo_properties.go | |
| parent | internal/intconv: Add Uint32ToUint8 (diff) | |
format/commitgraph: Add initial commit-graph support
Diffstat (limited to 'internal/testgit/repo_properties.go')
| -rw-r--r-- | internal/testgit/repo_properties.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/testgit/repo_properties.go b/internal/testgit/repo_properties.go index 47123ee8..3a489124 100644 --- a/internal/testgit/repo_properties.go +++ b/internal/testgit/repo_properties.go @@ -11,3 +11,8 @@ func (testRepo *TestRepo) Dir() string { func (testRepo *TestRepo) Algorithm() objectid.Algorithm { return testRepo.algo } + +// Env returns a copy of the environment used for git subprocesses. +func (testRepo *TestRepo) Env() []string { + return append([]string(nil), testRepo.env...) +} |
