summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-10 11:16:39 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-10 20:39:24 (GMT)
commit8142f603b9955648228549d2e83ace7fbe834114 (patch)
tree3a0d7d9794316715acbdb32f4e7032ebb359ee19
parent326711c16879792da8d7159bf29d080569c3a1e0 (diff)
downloadgit-8142f603b9955648228549d2e83ace7fbe834114.zip
git-8142f603b9955648228549d2e83ace7fbe834114.tar.gz
git-8142f603b9955648228549d2e83ace7fbe834114.tar.bz2
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 <junkio@cox.net> (cherry picked from a675cda60ead41f439b04bc69e0f19ace04e59d3 commit)
-rw-r--r--builtin-archive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-archive.c b/builtin-archive.c
index c70488c..3a8be57 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)