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

  1. Add/change/remove a Git submodule from a repository
  2. View the file list in a commit

Example Project

What is the current bug behavior?

Submodules use a generic file type icon, which is not consistent with the repository view (see below).

Commit
image

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)

image

Output of checks

This bug happens on GitLab.com