diff options
| author | 2026-02-20 22:59:14 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:59:14 +0800 | |
| commit | d88c8e20aebd9408df0306e97dffc2896950342d (patch) | |
| tree | 8e137f37fdd9ea673bd622a2b9c9873cd89278fb /internal/testgit/repo_new.go | |
| parent | objectid: Use _test package for tests (diff) | |
| signature | No signature | |
*: Replace repo with testRepo
Diffstat (limited to 'internal/testgit/repo_new.go')
| -rw-r--r-- | internal/testgit/repo_new.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/repo_new.go b/internal/testgit/repo_new.go index 308d8156..8908c8c0 100644 --- a/internal/testgit/repo_new.go +++ b/internal/testgit/repo_new.go @@ -31,7 +31,7 @@ func newRepo(tb testing.TB, algo objectid.Algorithm, bare bool) *TestRepo { } tb.Cleanup(func() { _ = os.RemoveAll(dir) }) - repo := &TestRepo{ + testRepo := &TestRepo{ dir: dir, algo: algo, env: append(os.Environ(), @@ -51,6 +51,6 @@ func newRepo(tb testing.TB, algo objectid.Algorithm, bare bool) *TestRepo { args = append(args, "--bare") } args = append(args, dir) - repo.runBytes(tb, nil, "", args...) - return repo + testRepo.runBytes(tb, nil, "", args...) + return testRepo } |
