aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit/repo_new.go
diff options
context:
space:
mode:
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
}