From: Martin Waitz Date: Thu, 21 Sep 2006 07:48:21 +0000 (+0200) Subject: gitweb: fix display of trees via PATH_INFO. X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/54da2e7bf317f70f751350fe5c7a8f343d74dfc4d14fc21e46772058e50bb76c?ds=sidebyside gitweb: fix display of trees via PATH_INFO. When adding a / to the URL, git should display the corresponding tree object, but it has to remove the / first. Signed-off-by: Martin Waitz Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index adfb99f..0cf22fa 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -300,6 +300,7 @@ sub evaluate_path_info { $pathname =~ s,^/+,,; if (!$pathname || substr($pathname, -1) eq "/") { $action ||= "tree"; + $pathname =~ s,/$,,; } else { $action ||= "blob_plain"; }