aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 13:11:56 +0800
committerGravatar Runxi Yu2026-03-06 13:12:06 +0800
commit195447b77ff5fc37e184d2d0e7aae99aec250d8c (patch)
treec683dc459d333e8b8c71689b9d2cd3d9e8649650 /internal/testgit
parentformat/pack/ingest: I don't think we need to use a clone there (diff)
signatureNo signature
*: go fix ./...
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/repo_make_many_objects_history.go2
1 files changed, 1 insertions, 1 deletions
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))
}