Deletion of an empty file in a merge request creates an collapsed diff that cant be expanded

Summary

Deleting a file that has no content (e.g. a .gitignore or .gitkeep that is no longer needed) will show up in the MR as follows: image

Clicking on the link makes the spinner pop up for a second or so, and then goes back to its initial state. Because there is no diff.

Steps to reproduce

  1. Create a project that has at least one empty file
  2. Create a new branch
  3. Delete the empty file on that branch
  4. Open a MR

What is the current bug behavior?

The 'Click to expand' link does not do what is expected.

What is the expected correct behavior?

The 'Click to expand' shoud not show up for an empty diff, instead it should just be empty.

Output of checks

This bug happens on GitLab.com

Edited Sep 25, 2018 by Gert de Pagter
Assignee Loading
Time tracking Loading