@matheusbsbs / matheus-bagliano / commits / 053d62bb5b
Fork 0

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 <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Martin Waitz committed Sep 21, 2006 at 09:48 UTC 053d62bb5bd523f492c6ef2e202da837b7f56905
1 file changed +1
gitweb/gitweb.perl
+1
@@ -300,6 +300,7 @@ sub evaluate_path_info {
300 $pathname =~ s,^/+,,;
301 if (!$pathname || substr($pathname, -1) eq "/") {
302 $action ||= "tree";
303 + $pathname =~ s,/$,,;
304 } else {
305 $action ||= "blob_plain";
306 }