From: Martin Waitz Date: Thu, 21 Sep 2006 07:48:21 +0000 (+0200) Subject: gitweb: fix display of trees via PATH_INFO. X-Git-Tag: v1.4.3-rc1~65 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=053d62bb5bd523f492c6ef2e202da837b7f56905;p=git.git 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/gitweb.perl b/gitweb/gitweb.perl index baadbe751..ea5771737 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/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"; }