spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
391 stars 41 forks source link

Bugfix: merge in master commit even if base tree didn't change #89

Closed sven-of-cord closed 2 years ago

sven-of-cord commented 2 years ago

When updating an existing pull request, we need to merge in the master commit if the local commit has been rebased. It can happen that the local commit has been rebased, but the commit's parent's tree has not changed. E.g. for the second of two commits, when the first one gets landed. The second is still based on the first, but that first commit is now on master. So we are based on a different master commit, even though the tree of the commit's parent hasn't changed. In this situation we still need to merge in master. Not to bring in any changes, but to correct the topology. It is important that the pull request branch is based on the same master commit as the local commit.

Test Plan: