diff options
author | Eric Wong <e@80x24.org> | 2016-05-21 05:27:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-21 05:30:10 +0000 |
commit | 57b18b44e1770b163aba55eacf53195a8305398e (patch) | |
tree | daae849408c649ab8aaa8cd100055de34873f7e2 /lib/PublicInbox/SearchIdx.pm | |
parent | 97d3489257811dad5381ca8b114d1b0c45554a20 (diff) | |
download | public-inbox-57b18b44e1770b163aba55eacf53195a8305398e.tar.gz |
This hopefully makes the intent of the code clearer, too. The the HTTP use of the numeric reference for getline caused problems in Git.pm, already.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 9192bb07..4a4b2bdb 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -338,6 +338,7 @@ sub rlog { --raw -r --no-abbrev/, $range); my $latest; my $bytes; + local $/ = "\n"; while (defined(my $line = <$log>)) { if ($line =~ /$addmsg/o) { my $mime = do_cat_mail($git, $1, \$bytes) or next; @@ -445,6 +446,7 @@ sub _read_git_config_perm { my ($self) = @_; my @cmd = qw(config core.sharedRepository); my $fh = PublicInbox::Git->new($self->{git_dir})->popen(@cmd); + local $/ = "\n"; my $perm = <$fh>; chomp $perm if defined $perm; $perm; |