From 195447b77ff5fc37e184d2d0e7aae99aec250d8c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 13:11:56 +0800 Subject: *: go fix ./... --- internal/testgit/repo_make_many_objects_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/testgit') diff --git a/internal/testgit/repo_make_many_objects_history.go b/internal/testgit/repo_make_many_objects_history.go index 17cce1ad..970d1992 100644 --- a/internal/testgit/repo_make_many_objects_history.go +++ b/internal/testgit/repo_make_many_objects_history.go @@ -74,7 +74,7 @@ func (testRepo *TestRepo) makeManyObjectsTree(tb testing.TB, prefix string, i in lines := make([]string, 0, files) for j := range files { - body := []byte(fmt.Sprintf("%s-%04d-%02d\n%s\n", prefix, i, j, strings.Repeat("x", 160+(i+j)%96))) + body := fmt.Appendf(nil, "%s-%04d-%02d\n%s\n", prefix, i, j, strings.Repeat("x", 160+(i+j)%96)) blobID := testRepo.HashObject(tb, "blob", body) lines = append(lines, fmt.Sprintf("100644 blob %s\t%s_%04d_%02d.txt\n", blobID.String(), prefix, i, j)) } -- cgit v1.3.1-10-gc9f91