about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-02-01 07:36:02 +0000
committerEric Wong <e@80x24.org>2019-02-01 07:47:02 +0000
commit0c3a1dabf7fd10ead73140d3f95b3047b144a834 (patch)
tree7d57d0a982b15bea2b0f9e42e4ccfc2ea7525030 /lib/PublicInbox/View.pm
parent3ccdbd75b0e337c393e53db0288e72b6e65ab9e0 (diff)
downloadpublic-inbox-0c3a1dabf7fd10ead73140d3f95b3047b144a834.tar.gz
This is best-effort, but works well-enough in practice for
projects which use shell-friendly filenames as well as the
long path names for some Linux kernel selftests.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 69aca3d7..e64c965b 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -571,6 +571,7 @@ sub add_text_body {
                 $ctx->{-apfx} = join('/', @idx);
                 $ctx->{-anchors} = {}; # attr => filename
                 $ctx->{-diff} = $diff = [];
+                delete $ctx->{-long_path};
                 my $spfx;
                 if ($ibx->{-repo_objs}) {
                         if (index($upfx, '//') >= 0) { # absolute URL (Atom feeds)