summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 199a921)
raw | patch | inline | side by side (parent: 199a921)
author | Martin Waitz <tali@admingilde.org> | |
Thu, 21 Sep 2006 07:48:21 +0000 (09:48 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 08:15:23 +0000 (01:15 -0700) |
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>
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>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index baadbe751275ccd0205af089d9ab4b245fa6a62c..ea5771737e77a06d90a1f07d61c0769c743e4dac 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
$pathname =~ s,^/+,,;
if (!$pathname || substr($pathname, -1) eq "/") {
$action ||= "tree";
+ $pathname =~ s,/$,,;
} else {
$action ||= "blob_plain";
}