aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/path.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-13 16:34:25 +0000
committerGravatar Runxi Yu2026-06-13 16:37:10 +0000
commit9ec139fbff856e9f056a4e5efeafb648ec0b7d26 (patch)
tree6680836f6531259a99cc66dc28df91538ef5c1e7 /object/fetch/path.go
parentobject/tree: Fix tests again (diff)
object/fetch: Fix API shape
Diffstat (limited to 'object/fetch/path.go')
-rw-r--r--object/fetch/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/fetch/path.go b/object/fetch/path.go
index f8eca507..e8b12481 100644
--- a/object/fetch/path.go
+++ b/object/fetch/path.go
@@ -47,7 +47,7 @@ func (err *PathNotTreeError) Error() string {
// for an io/fs.FS-like interface.
//
// Labels: Life-Parent.
-func (fetcher *Fetcher) Path(root oid.ObjectID, parts []string) (tree.Entry, error) {
+func (fetcher *Fetcher) Path(root oid.ObjectID, parts [][]byte) (tree.Entry, error) {
if len(parts) == 0 {
return tree.Entry{}, ErrPathInvalid
}