> If the URL ends in .git, why can't it just forward to the git backends regardless of User-Agent?
Because we allow dots in repo names, so does "/erik/repo.git" mean that you want to clone "/erik/repo" or browse "/erik/repo.git"?
In all fairness, we could probably do a better job by looking at the path. Most if not all paths accessed by git don't map to Bitbucket URL patterns.
> If the URL ends in .git, why can't it just forward to the git backends regardless of User-Agent?
Because we allow dots in repo names, so does "/erik/repo.git" mean that you want to clone "/erik/repo" or browse "/erik/repo.git"?
In all fairness, we could probably do a better job by looking at the path. Most if not all paths accessed by git don't map to Bitbucket URL patterns.