Git HTTP Redirects are Broken

Summary

GitLab's HTTP redirects for git are broken. Namely, those of the format:

https://gitlab.com/<repository path>.git?ref=<branch>/<path (optional)>

The .git above is important.

Steps to reproduce

Attempt to go to any URL of that format (e.g. https://gitlab.com/gitlab-org/gitlab.git?ref=master/.dockerignore). You will end up in an endless redirect.

Example Project

Every project I have tried.

https://gitlab.com/gitlab-org/gitlab.git?ref=master/.dockerignore

What is the current bug behavior?

Endless redirects.

What is the expected correct behavior?

It should resolve to the file at that ref. Note, this works find on GitHub and was working fine fourteen hours ago if not sooner. https://github.com/obsidiansystems/nix-thunk?ref=master/.gitignore

Relevant logs and/or screenshots

N/A

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

N/A

Results of GitLab application Check

N/A

Possible fixes

I don't know.

Edited by Joshua Holland