Web UI shows deleted commits and contents.
Summary
Deleted commits still show in user profiles, including the diffs/contents of the commit.
Steps to reproduce
- Push commits to a repository.
- Use
git reset
orrebase
to delete some commits and push - ensuregit log
and Commits page on project show that the targeted commits have been deleted. - Go to the user's (who pushed the commits) profile.
- The deleted commit should still show on their profile history. Clicking on that commit should open a page with all of the commit details.
Example Project
https://gitlab.com/services-support-testing/gitstuff
What is the current bug behavior?
Deleted commits can still be seen on web UI.
What is the expected correct behavior?
Deleted commits should be removed entirely as these are often deleted to remove sensitive information that was accidentally pushed.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
GitLab Enterprise Edition 11.1.0-ee 9a9f41d
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)