about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-13 22:24:45 +0000
committerEric Wong <e@80x24.org>2017-01-13 22:24:45 +0000
commita20a1181a2d581892c0fc43b435cacd98443afe3 (patch)
tree2ae93f5144b42bf43ed2f4c26b8daa67324db6b8
parentc855bbe65ade50ac93f67d33daba20c0db500dfd (diff)
downloadpublic-inbox-a20a1181a2d581892c0fc43b435cacd98443afe3.tar.gz
D::S creates a reference for this, anyways, so avoid
the extra work by doing it ourselves.
-rw-r--r--lib/PublicInbox/GitAsyncRd.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/GitAsyncRd.pm b/lib/PublicInbox/GitAsyncRd.pm
index a56dc392..465db2c7 100644
--- a/lib/PublicInbox/GitAsyncRd.pm
+++ b/lib/PublicInbox/GitAsyncRd.pm
@@ -29,7 +29,7 @@ sub cat_file_async {
         my ($self, $obj, $cb) = @_;
         # order matters
         push @{$self->{jobq}}, [ $obj, $cb ];
-        $self->{wr}->write($obj."\n");
+        $self->{wr}->write(\"$obj\n");
 }
 
 # Returns: an array ref of the info line for --batch-check and --batch,