Commit list returns 404 when requesting json format
While working on another issue I noticed that requesting https://gitlab.com/gitlab-org/gitlab/-/commits/master.json returns 404.
We added json rendering in 2013 and later added logic to check the ref name is valid before passing it to gitaly.
It seems that when you request /ref.json we are returning a 404 because the format is included in the ref name.
We have logic to remove .atom extensions, we should implement the same logic for .json extensions
Edited by Joe Woodward