chiark / gitweb /
Set autoflush on stdout, to get better ordering of debugging etc. output when stdout...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 11:42:14 +0000 (12:42 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 11:42:14 +0000 (12:42 +0100)
debian/changelog
dgit

index 4ac1598..be125f8 100644 (file)
@@ -1,3 +1,10 @@
+dgit (0.16) unstable; urgency=low
+
+  * Set autoflush on stdout, to get better ordering of debugging
+    etc. output when stdout is redirected.
+
+ --
+
 dgit (0.15) unstable; urgency=low
 
   * Better handling of packages pushed using dgit and stuck in NEW.
diff --git a/dgit b/dgit
index 1838f2f..083086b 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -71,6 +71,8 @@ our $keyid;
 our $debug = 0;
 open DEBUG, ">/dev/null" or die $!;
 
+autoflush STDOUT 1;
+
 our $remotename = 'dgit';
 our @ourdscfield = qw(Dgit Vcs-Dgit-Master);
 our $branchprefix = 'dgit';