Fix icon for submodules in merge requests
Summary
In commits and merge requests, 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 or merge request
Example Project
- Commit: gitlab-test@e695d880
- Merge request: gitlab-test!52 (diffs)
What is the current bug behavior?
Submodules use a generic file type icon, which is not consistent with the repository view (see below).
| Commit | Merge request |
|---|---|
![]() |
![]() |
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
Edited by André Luís (no longer at GitLab)


