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)
Junio C Hamano committed
Sep 10, 2006 at 04:16 UTC
8142f603b9955648228549d2e83ace7fbe834114
1 file changed
+2
builtin-archive.c
+2
@@ -238,6 +238,8 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
238
if (remote)
239
return run_remote_archiver(remote, argc, argv);
240
241
+ setlinebuf(stderr);
242
+
243
memset(&ar, 0, sizeof(ar));
244
tree_idx = parse_archive_args(argc, argv, &ar);
245
if (prefix == NULL)