
We can't rewrite hashes with mod_rewrite, as they are client-side and are not sent to the server. Instead, put in a javascript snippet to rewrite them in the format that gitea is looking for. We only need to handle single lines, as cgit doesn't handle ranges. Change-Id: I6226e420838a88276a86e406c40f6707eb090310