Merge branch 'dm-submodule-links-nil' into 'master'
Fix error rendering submodules in MR diffs when there is no .gitmodules
See merge request gitlab-org/gitlab-ce!31162
(cherry picked from commit 55f99e93)
cfef1e8e Fix error rendering submodules in MR diffs when there is no .gitmodules