aboutsummaryrefslogtreecommitdiff
path: root/reachability/walk_expand_objects.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-20 17:12:31 +0000
committerGravatar Runxi Yu2026-05-20 17:12:31 +0000
commit33103e13b34d3f40fae507d657fc1750c66c3b8c (patch)
tree9083f56d20adb2f7bbb7f0ca07ada53214528bdf /reachability/walk_expand_objects.go
parentreachability: CheckConnected should get a strict option (diff)
signatureNo signature
object/tag: Rename Target to TargetID
Diffstat (limited to 'reachability/walk_expand_objects.go')
-rw-r--r--reachability/walk_expand_objects.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reachability/walk_expand_objects.go b/reachability/walk_expand_objects.go
index 8b479021..8f0e1d02 100644
--- a/reachability/walk_expand_objects.go
+++ b/reachability/walk_expand_objects.go
@@ -60,7 +60,7 @@ func (walk *Walk) expandObjects(item walkItem) ([]walkItem, error) {
return nil, err
}
- return []walkItem{{id: tag.Object().Target, want: tag.Object().TargetType}}, nil
+ return []walkItem{{id: tag.Object().TargetID, want: tag.Object().TargetType}}, nil
case objecttype.TypeInvalid, objecttype.TypeFuture, objecttype.TypeOfsDelta, objecttype.TypeRefDelta:
return nil, &errors.ObjectTypeError{OID: item.id, Got: ty, Want: item.want}
}