diff options
Diffstat (limited to 'internal/testgit/repo_make_commit.go')
| -rw-r--r-- | internal/testgit/repo_make_commit.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/repo_make_commit.go b/internal/testgit/repo_make_commit.go index 35619334..a569dfb1 100644 --- a/internal/testgit/repo_make_commit.go +++ b/internal/testgit/repo_make_commit.go @@ -7,9 +7,9 @@ import ( ) // MakeCommit creates a commit over a single-file tree and returns (blobID, treeID, commitID). -func (repo *TestRepo) MakeCommit(tb testing.TB, message string) (objectid.ObjectID, objectid.ObjectID, objectid.ObjectID) { +func (testRepo *TestRepo) MakeCommit(tb testing.TB, message string) (objectid.ObjectID, objectid.ObjectID, objectid.ObjectID) { tb.Helper() - blobID, treeID := repo.MakeSingleFileTree(tb, "file.txt", []byte("commit-body\n")) - commitID := repo.CommitTree(tb, treeID, message) + blobID, treeID := testRepo.MakeSingleFileTree(tb, "file.txt", []byte("commit-body\n")) + commitID := testRepo.CommitTree(tb, treeID, message) return blobID, treeID, commitID } |
