Skip to content

Bug - 500 error after pushing a file starting with `:` to the root directory of the repo

Summary

The last commits for each file in the repository loops infine and not shown after pushing a file starting with colon :. Although, when openning the file he 500 error page appears. I've tested this on my self-hosted gitlab-ee and GitLab.com

Steps to reproduce

  • create a file named :wq insdie the repository.
  • push the file to the master branch.
  • open gitlab.com in the browser and open repository

You'll see infinite shadow loading for last commit next to file names.

Example Project

Open my test repo. Also, you can click the :wq file to open and see the result.

What is the current bug behavior?

500 Error and infinie load loop to show last commit.

Relevant logs and/or screenshots

screenshot

Edited by MohamadAli
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information