chiark / gitweb /
fix protocol_receive_file not to use STDIN
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 14:11:05 +0000 (15:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 14:11:05 +0000 (15:11 +0100)
debian/changelog
dgit

index 8c37c8fe3c64d6732cef0e2db76d7209933dc1ee..1dfefb33e9fbcd998d95a1894ca95e61ea811b31 100644 (file)
@@ -2,6 +2,7 @@ dgit (0.17) unstable; urgency=low
 
   * Fix dgit --damp-run sbuild to actually work.
   * Improvements to implementation of --dry-run and --damp-run.
+  * More fixes to remote implementation.
 
  --
 
diff --git a/dgit b/dgit
index b1ed90447748bb25d95f75f9575badc26e00aa08..549b2515f0a5633077320bbf755b26b3b9c3c50d 100755 (executable)
--- 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";