about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitTree.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoGitTree.pm')
-rw-r--r--lib/PublicInbox/RepoGitTree.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/RepoGitTree.pm b/lib/PublicInbox/RepoGitTree.pm
index 5b428da0..5e880ee3 100644
--- a/lib/PublicInbox/RepoGitTree.pm
+++ b/lib/PublicInbox/RepoGitTree.pm
@@ -191,9 +191,7 @@ sub git_tree_show {
         my $pfx;
 
         $req->{thtml} .= "\npath: $t\n\n<b>mode\tsize\tname</b>\n";
-        if ($req->{tslash}) {
-                $pfx = '../';
-        } elsif (defined(my $last = $req->{extra}->[-1])) {
+        if (defined(my $last = $req->{extra}->[-1])) {
                 $pfx = PublicInbox::Hval->utf8($last)->as_path;
         } elsif (defined $req->{h}) {
                 $pfx = $req->{-repo}->tip;