chiark / gitweb /
wip remote - better autoflushes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 09:25:22 +0000 (10:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 09:25:22 +0000 (10:25 +0100)
dgit

diff --git a/dgit b/dgit
index b6d8158..f6c129a 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1404,7 +1404,7 @@ sub cmd_remote_push_responder {
     chdir $dir or die "$dir: $!";
     $we_are_responder = 1;
     $debugprefix = ' ';
-    $|=1;
+    autoflush STDOUT 1;
     responder_send_command("dgit-remote-push-ready");
     &cmd_push;
 }
@@ -1775,6 +1775,7 @@ sub parseopts () {
                } elsif (s/^-D/-/) {
                    push @ropts, $&;
                    open DEBUG, ">&STDERR" or die $!;
+                   autoflush DEBUG 1;
                    $debug++;
                } elsif (s/^-N/-/) {
                    push @ropts, $&;