Fix icon for submodules in the commit view
Summary
In commits Git submodules use a generic file type icon, which is not consistent with the repository view.
Steps to reproduce
- Add/change/remove a Git submodule from a repository
- View the file list in a commit
Example Project
- Commit: gitlab-test@e695d880
What is the current bug behavior?
Submodules use a generic file type icon, which is not consistent with the repository view (see below).
| Commit |
|---|
![]() |
What is the expected correct behavior?
Submodules should use the corresponding file type icon, as seen in the repository (example: https://gitlab.com/gitlab-org/gitlab-test)
Output of checks
This bug happens on GitLab.com

