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
- Create the repo
- Add a new file with secrets
- Commit
- Push
- Contemplate life choices
- Delete the file
- Amend the commit
- Use the Force (push)
- Hope nobody saw your secret (wait 30 mins, as per: #212763 (comment 1099170698))
- Realize that your profile page still has a direct link to the "deleted" commit (profile: https://gitlab.com/SheepReaper, commit: SheepReaper/secret-whoops@671d37ce)
Example Project
Here is the minimal repro repo: https://gitlab.com/SheepReaper/secret-whoops
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)
Edited by Sean Carroll


