Include case of direct parent
`repo.graph_descendant_of(a, b)` does return `false` if `a == b`, so
that case needs to be handled extra.
@@ -340,7 +340,8 @@ pub fn unapply_filter(
parent_count => {
let mut tid = git2::Oid::zero();
for i in 0..parent_count {
- if transaction
+ if (original_parents_refs[i].id() == original_target)
+ || transaction
.repo()
.graph_descendant_of(original_parents_refs[i].id(), original_target)?
{
