Skip to content

diff.json returns 404 for empty commits

Summary

Changes tab doesn't load when comparing with previous version which contains an empty commit.

Steps to reproduce

  • create new branch from default branch
  • create merge request from branch (without any commits)
  • create empty commit on the branch
  • in the system note for the push on the merge request page lick on Compare with previous version

Example

What is the current bug behavior?

error is shown and changes tab doesn't load

Screen_Shot_2018-08-24_at_19.29.44

Screen_Shot_2018-08-24_at_19.29.37

What is the expected correct behavior?

tab is shown without error

Edited by Inactive Account