aboutsummaryrefslogtreecommitdiff
path: root/reachability/walk_expand_commits.go
diff options
context:
space:
mode:
Diffstat (limited to 'reachability/walk_expand_commits.go')
-rw-r--r--reachability/walk_expand_commits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reachability/walk_expand_commits.go b/reachability/walk_expand_commits.go
index eaeb4e72..c612ddf1 100644
--- a/reachability/walk_expand_commits.go
+++ b/reachability/walk_expand_commits.go
@@ -50,7 +50,7 @@ func (walk *Walk) expandCommits(item walkItem) ([]walkItem, error) {
return nil, err
}
- return []walkItem{{id: tag.Object().Target, want: objecttype.TypeInvalid}}, nil
+ return []walkItem{{id: tag.Object().TargetID, want: objecttype.TypeInvalid}}, nil
case objecttype.TypeTree, objecttype.TypeBlob, objecttype.TypeInvalid,
objecttype.TypeFuture, objecttype.TypeOfsDelta, objecttype.TypeRefDelta:
return nil, &errors.ObjectTypeError{OID: item.id, Got: ty, Want: objecttype.TypeCommit}