Use recorded merged commit for fast-forward cherry-pick

What does this MR do and why?

The Cherry-pick button on a merge request merged by fast-forward can skip the commit that landed and pick the one from an earlier revision. That earlier commit comes from the merge request diff, which commit_to_revert reads even though the commit that landed is already stored in merged_commit_sha. Reading merged_commit_sha first fixes the Cherry-pick button and, because both buttons share commit_to_revert, the Revert button too.

References

Edited by Matin Lotfaliee

Merge request reports

Loading
Loading