aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-09-21 09:48:21 +0200
committerJunio C Hamano <junkio@cox.net>2006-09-21 01:15:23 -0700
commit053d62bb5bd523f492c6ef2e202da837b7f56905 (patch)
tree34956aeb50d5edcf8baab7e0d1e7e3eb8f024e41 /gitweb
parent199a92186b6721b23a2400c91f8bd44e7ffa349a (diff)
downloadgit-053d62bb5bd523f492c6ef2e202da837b7f56905.tar.gz
git-053d62bb5bd523f492c6ef2e202da837b7f56905.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl1
1 files changed, 1 insertions, 0 deletions
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";
}