aboutsummaryrefslogtreecommitdiff
path: root/object/tree_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/tree_parse.go')
-rw-r--r--object/tree_parse.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/object/tree_parse.go b/object/tree_parse.go
index b9063d75..37a2fa4b 100644
--- a/object/tree_parse.go
+++ b/object/tree_parse.go
@@ -5,11 +5,11 @@ import (
"fmt"
"strconv"
- "codeberg.org/lindenii/furgit/oid"
+ "codeberg.org/lindenii/furgit/objectid"
)
// ParseTree decodes a tree object body.
-func ParseTree(body []byte, algo oid.Algorithm) (*Tree, error) {
+func ParseTree(body []byte, algo objectid.Algorithm) (*Tree, error) {
var entries []TreeEntry
i := 0
for i < len(body) {
@@ -31,7 +31,7 @@ func ParseTree(body []byte, algo oid.Algorithm) (*Tree, error) {
if idEnd > len(body) {
return nil, fmt.Errorf("object: tree: truncated child object id")
}
- id, err := oid.FromBytes(algo, body[i:idEnd])
+ id, err := objectid.FromBytes(algo, body[i:idEnd])
if err != nil {
return nil, err
}