URLs containing ".git" unreachable

Created by: Yogu

If a url contains the four characters .git, prepended by any character, Gitlab assumes the url to be a repository and responds with a 401 error. This prevents me from viewing e.g. a ".gitmodules" file.

Instead, Gitlab should only treat urls that end with .git as repositories.