Skip to content

Why aren't tree hashes in multiple commits considered for common ancestor? #269

@svelez

Description

@svelez

I've noticed that if I push my subrepo to a branch, and then merge that branch in to master (using a pull request), with no changes necessary to the tree, then my next pull of the subrepo does not recognize the pushed commit as a common ancestor (and I have to re-resolve some earlier merge conflicts).

I think that this is because in subrepo:merge-base, this happens:

        if [[ ${#target_value} > 40 ]]; then
          if $list_all; then
            say "Multiple on $2: $target_value"
          fi
        else

And the multi-match tree is not considered for new_parent and old_parent.

Am I reading this correctly? If so, why is this?
Should I focus on just pushing to a single branch in the subrepo?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions