X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=dgit;h=549b2515f0a5633077320bbf755b26b3b9c3c50d;hb=8922b4bef17886da65d1ac33eede20ade9fa4197;hp=b1ed90447748bb25d95f75f9575badc26e00aa08;hpb=41e0ec2b26cba9b3d4016b195ec8795ca1bd40f4;p=dgit.git diff --git a/dgit b/dgit index b1ed9044..549b2515 100755 --- a/dgit +++ b/dgit @@ -223,9 +223,9 @@ sub protocol_receive_file ($$) { my ($y,$l) = protocol_expect { m/^data-block (.*})$|data-end$/; length $1 ? (1,$1) : (0); - } \*STDIN; + } $fh; last unless $y; - my $d = protocol_read_bytes \*STDIN, $1; + my $d = protocol_read_bytes $fh, $1; print PF $d or die $!; } printdebug "received into $ourfn\n";