Stale diff shows on a merge request
Summary
As reported on Slack (internal), changes pushed on a merge request is not showing up on the diff immediately. Shows up after a while though.
Steps to reproduce
- Open a MR.
- Push a commit.
- View the MR changes. The changes from recent commit should show up.
- Remove that commit (via
git reset
) and force push. - View the MR changes. The changes from removed commit is still there.
Workaround
Amend the latest commit (via git commit --amend
) and force push again. This updates the SHA of the latest commit.
Example Project
omnibus-gitlab!5653 (diffs) (but as of this writing it's already showing updated diff)
What is the current bug behavior?
Diff not showing updated changes right away.
What is the expected correct behavior?
Diff shows updated changes quickly.
Edited by Patrick Bajao