From 6fb16a4c698a042eaf568a51e7d17f6fc9a5c856 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 25 Apr 2019 23:15:33 +0200 Subject: [PATCH] proxies-redirects: Add another rewrite for cgit on src.fp.o (#7736) --- roles/httpd/redirect/templates/redirect.cgit.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/httpd/redirect/templates/redirect.cgit.conf b/roles/httpd/redirect/templates/redirect.cgit.conf index 88002f0405..576c550039 100644 --- a/roles/httpd/redirect/templates/redirect.cgit.conf +++ b/roles/httpd/redirect/templates/redirect.cgit.conf @@ -15,5 +15,8 @@ RewriteRule ^/cgit/([-._+a-zA-Z0-9/]+)\.git/plain/(.*) /$1/raw/%2/f/$2? [R,L] # plain file at HEAD RewriteRule ^/cgit/([-._+a-zA-Z0-9/]+)\.git/plain/(.*) /$1/raw/HEAD/f/$2? [R,L] +# tree at HEAD +RewriteRule ^/cgit/([-._+a-zA-Z0-9/]+)\.git/tree/(.*) /$1/blob/HEAD/f/$2 [R,L] + # main project page RewriteRule ^/cgit/([-._+a-zA-Z0-9/]+)\.git/?$ /$1? [R,L]