summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorLibravatar Martin Waitz <tali@admingilde.org>2006-09-21 09:48:21 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-21 01:15:23 -0700
commit053d62bb5bd523f492c6ef2e202da837b7f56905 (patch)
tree34956aeb50d5edcf8baab7e0d1e7e3eb8f024e41 /gitweb/gitweb.perl
parentDocument receive.denyNonFastforwards (diff)
downloadtgif-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/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index baadbe7512..ea5771737e 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";
}