Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: fix display of trees via PATH_INFO.
[gitweb.git]
/
gitweb
/
gitweb.perl
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index baadbe751275ccd0205af089d9ab4b245fa6a62c..ea5771737e77a06d90a1f07d61c0769c743e4dac 100755
(executable)
--- 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";
}