I want to see commits in repos with no branches
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=24234) </details> <!--IssueSummary end--> ### Summary Gitlab won't let me browse the contents of a commit with no branches (but with other refs). I think that's because of: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/controllers/projects/application_controller.rb#L62 This matters to us because our submodules use synthetic refs: https://github.com/twosigma/git-meta/blob/master/doc/architecture.md ### Steps to reproduce Create a new empty project (e.g. https://gitlab.com/dturner_ts/nonempty. From a local repo, git push HEAD:refs/morx/fleem. Visit: https://gitlab.com/dturner_ts/nonempty/commit/271f375e84d7602d6adfcecbbbcb10999ac97e3a Get redirected back to https://gitlab.com/dturner_ts/nonempty instead of seeing my commit By contrast, I also pushed the same commit to refs/morx/fleem on a repo that had branches: https://gitlab.com/dturner_ts/gitlab-ce/commit/271f375e84d7602d6adfcecbbbcb10999ac97e3a That link works. ### Example Project https://gitlab.com/dturner_ts/nonempty/commit/271f375e84d7602d6adfcecbbbcb10999ac97e3a ### What is the current *bug* behavior? I get redirected back to https://gitlab.com/dturner_ts/nonempty ### What is the expected *correct* behavior? I see my commit. ### Output of checks This bug happens on GitLab.com ### Possible fixes Just remove e.g. https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/controllers/projects/blob_controller.rb#L11
issue