diff options
author | Eric Wong <e@80x24.org> | 2019-02-01 07:36:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-02-01 07:47:02 +0000 |
commit | 0c3a1dabf7fd10ead73140d3f95b3047b144a834 (patch) | |
tree | 7d57d0a982b15bea2b0f9e42e4ccfc2ea7525030 /lib/PublicInbox/View.pm | |
parent | 3ccdbd75b0e337c393e53db0288e72b6e65ab9e0 (diff) | |
download | public-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.pm | 1 |
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) |