diff options
Diffstat (limited to 'reachability/ancestor.go')
| -rw-r--r-- | reachability/ancestor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reachability/ancestor.go b/reachability/ancestor.go index 211aed01..584ec0e3 100644 --- a/reachability/ancestor.go +++ b/reachability/ancestor.go @@ -12,12 +12,12 @@ import ( // // Both inputs are peeled through annotated tags before commit traversal. func (r *Reachability) IsAncestor(ancestor, descendant objectid.ObjectID) (bool, error) { - ancestorCommit, err := r.peelRootToDomain(ancestor, DomainCommits) + ancestorCommit, err := r.peelRootToCommit(ancestor) if err != nil { return false, err } - descendantCommit, err := r.peelRootToDomain(descendant, DomainCommits) + descendantCommit, err := r.peelRootToCommit(descendant) if err != nil { return false, err } |
