aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_new.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-20 22:59:14 +0800
committerGravatar Runxi Yu2026-02-20 22:59:14 +0800
commitd88c8e20aebd9408df0306e97dffc2896950342d (patch)
tree8e137f37fdd9ea673bd622a2b9c9873cd89278fb /internal/testgit/repo_new.go
parentobjectid: Use _test package for tests (diff)
signatureNo signature
*: Replace repo with testRepo
Diffstat (limited to 'internal/testgit/repo_new.go')
-rw-r--r--internal/testgit/repo_new.go6
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
}