aboutsummaryrefslogtreecommitdiff
path: root/format
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 10:14:38 +0000
committerGravatar Runxi Yu2026-03-29 10:17:15 +0000
commit32f84b9d89d34ab74f8843f939f8d1d811d403ad (patch)
tree90786209ddd050ad2676a7d0404b78d8d278e1f2 /format
parentobject/{id,header,signature,type}: Update docs (diff)
signatureNo signature
object/id: Split files
Diffstat (limited to 'format')
-rw-r--r--format/commitgraph/read/layer_lookup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/format/commitgraph/read/layer_lookup.go b/format/commitgraph/read/layer_lookup.go
index 84095788..fafc594b 100644
--- a/format/commitgraph/read/layer_lookup.go
+++ b/format/commitgraph/read/layer_lookup.go
@@ -9,7 +9,7 @@ import (
)
func layerLookup(layer *layer, oid objectid.ObjectID) (uint32, bool) {
- hashSize := oid.Size()
+ hashSize := oid.Algorithm().Size()
first := int(oid.RawBytes()[0])
var lo uint32