diff between latest version and actual last version produces wrong error message
Summary
When comparing changes between versions of a Merge Request that are the same, the "this page is blank" message says, "No changes between and master", when the diff is between two versions of the branch.
See this example
Steps to reproduce
- Create a project
- Push a commit
- Create a Merge Request
- Amend the commit and change the commit message
- Force push the commit
- Go to the Merge Request and click "Changes"
- Select "Changes between latest version and version 1"
Since the only change between versions is the commit message, it will correctly show No changes but will say "between and master" instead of "between latest version and version 1". Or, perhaps there should be no error message at all as when you choose changes between "version 1 and version 1".
Example Project
What is the current bug behavior?
Incorrect Message
What is the expected correct behavior?
Either no message to match behavior when selecting the same version, or the correct comparison
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A
Results of GitLab application Check
N/A
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)