archive: force line buffered output to stderr
authorJunio C Hamano <junkio@cox.net>
Sun, 10 Sep 2006 11:16:39 +0000 (04:16 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 10 Sep 2006 20:39:24 +0000 (13:39 -0700)
Otherwise the remote notification that comes with -v option can get
clumped together.

Signed-off-by: Junio C Hamano <junkio@cox.net>
(cherry picked from a675cda60ead41f439b04bc69e0f19ace04e59d3 commit)

builtin-archive.c

index c70488c53790d0339d38f5978d97fb4e7faa7fb3..3a8be57e15f3d528d618e39d0c131ca7fac7a638 100644 (file)
@@ -238,6 +238,8 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
        if (remote)
                return run_remote_archiver(remote, argc, argv);
 
+       setlinebuf(stderr);
+
        memset(&ar, 0, sizeof(ar));
        tree_idx = parse_archive_args(argc, argv, &ar);
        if (prefix == NULL)