gitweb: fix display of trees via PATH_INFO.
[gitweb.git] / gitweb / gitweb.perl
index baadbe751275ccd0205af089d9ab4b245fa6a62c..ea5771737e77a06d90a1f07d61c0769c743e4dac 100755 (executable)
@@ -300,6 +300,7 @@ sub evaluate_path_info {
                $pathname =~ s,^/+,,;
                if (!$pathname || substr($pathname, -1) eq "/") {
                        $action  ||= "tree";
+                       $pathname =~ s,/$,,;
                } else {
                        $action  ||= "blob_plain";
                }