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>
This commit is contained in:
parent
199a92186b
commit
053d62bb5b
@ -300,6 +300,7 @@ sub evaluate_path_info {
|
||||
$pathname =~ s,^/+,,;
|
||||
if (!$pathname || substr($pathname, -1) eq "/") {
|
||||
$action ||= "tree";
|
||||
$pathname =~ s,/$,,;
|
||||
} else {
|
||||
$action ||= "blob_plain";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user