Skip to content

Commit

Permalink
archive: force line buffered output to stderr
Browse files Browse the repository at this point in the history
Otherwise the remote notification that comes with -v option can get
clumped together.

Signed-off-by: Junio C Hamano <[email protected]>
(cherry picked from a675cda60ead41f439b04bc69e0f19ace04e59d3 commit)
  • Loading branch information
Junio C Hamano committed Sep 10, 2006
1 parent 326711c commit 8142f60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-archive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8142f60

Please sign in to comment.