When accessed via browser, redirect site.com/repository.git to site.com/repository/
Created by: Aaron3
A basic usability enhancement would be to redirect .git urls to the main repository by default rather than 404ing.
Expected: site.com/user/repo.git redirects to site.com/user/repo/. Actual: a 404 page is returned
Why: a user sent a git command for an unknown repo, "git remote add backup http://site.com/user/repo.git", would want to view the contents in the file browser to review it and shouldn't have to guess what the correct repo url is.
See #4772 (closed) also.