Oops, I guess I'm trigger-happy today.
Fixes: 31a6ff1221fe ("inbox: ensure we do not show leading "From " lines")
my ($self, $path, $ref) = @_;
# TODO: allow other refs:
my $str = git($self)->cat_file('HEAD:'.$path, $ref);
my ($self, $path, $ref) = @_;
# TODO: allow other refs:
my $str = git($self)->cat_file('HEAD:'.$path, $ref);
- $$str =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s;
+ $$str =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s if $str;