From: Junio C Hamano Date: Sun, 10 Sep 2006 11:16:39 +0000 (-0700) Subject: archive: force line buffered output to stderr X-Git-Tag: v1.4.3-rc1~90^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8142f603b9955648228549d2e83ace7fbe834114;p=git.git archive: force line buffered output to stderr Otherwise the remote notification that comes with -v option can get clumped together. Signed-off-by: Junio C Hamano (cherry picked from a675cda60ead41f439b04bc69e0f19ace04e59d3 commit) --- diff --git a/builtin-archive.c b/builtin-archive.c index c70488c53..3a8be57e1 100644 --- a/builtin-archive.c +++ b/builtin-archive.c @@ -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)