What does this MR do?
This MR fixes a bug where deleting a newly added file was not removed from staging (and left the commit tab around).
Does this MR meet the acceptance criteria?
Documentation (if required)
Code review guidelines
Merge request performance guidelines
Separation of EE specific content
- Related to #213239 (closed)