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