aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-07 12:12:39 +0000
committerGravatar Runxi Yu2026-06-07 12:17:59 +0000
commit58698a0e70c61c7447ec9a7b938fc63a94151db1 (patch)
tree808873c6e9ea3a38bcd054ac34eca09bec34703f /internal/testgit
parentobject/tree: Reject duplicates (diff)
signatureNo signature
object/tree: Add tests
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testgit/tree.go b/internal/testgit/tree.go
index cf6ab1bf..501c7949 100644
--- a/internal/testgit/tree.go
+++ b/internal/testgit/tree.go
@@ -52,7 +52,7 @@ func (repo *Repo) LsTree(tb testing.TB, oid id.ObjectID) ([]TreeEntry, error) {
var entries []TreeEntry
- for _, record := range bytes.Split(stdout, []byte{0}) {
+ for record := range bytes.SplitSeq(stdout, []byte{0}) {
if len(record) == 0 {
continue
}