{"thread":{"id":"20298","subject":"[PATCH] checkout: hide progress bar when stderr is not a tty","startedAt":"2009-07-30T16:13:34Z","lastAt":"2009-07-30T16:13:34Z","messageCount":1,"participants":["Michal Marek"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"119177","messageId":"1248970414-21851-1-git-send-email-mmarek@suse.cz","threadId":"20298","inReplyTo":null,"subject":"[PATCH] checkout: hide progress bar when stderr is not a tty","fromName":"Michal Marek","fromEmail":"mmarek@suse.cz","sentAt":"2009-07-30T16:13:34Z","receivedAt":"2009-07-30T16:13:34Z","isPatch":true,"sender":{"key":"mmarek@suse.cz","avatar":"https://gravatar.com/avatar/b026025af60a27d7ea0635833f351de6b0a6089a9573415d86c9352eda4f6e9a?d=mp&s=160"},"body":"The correct fix would be in start_progress_delay(), however this breaks\nthe progress bar for fetch/push via ssh. So fix it in this caller which\nwill always run locally.\n\nSigned-off-by: Michal Marek <mmarek@suse.cz>\n---\n unpack-trees.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/unpack-trees.c b/unpack-trees.c\nindex 720f7a1..a11f559 100644\n--- a/unpack-trees.c\n+++ b/unpack-trees.c\n@@ -75,7 +75,7 @@ static int check_updates(struct unpack_trees_options *o)\n \tint i;\n \tint errs = 0;\n \n-\tif (o->update && o->verbose_update) {\n+\tif (o->update && o->verbose_update && isatty(STDERR_FILENO)) {\n \t\tfor (total = cnt = 0; cnt < index->cache_nr; cnt++) {\n \t\t\tstruct cache_entry *ce = index->cache[cnt];\n \t\t\tif (ce->ce_flags & (CE_UPDATE | CE_REMOVE))\n-- \n1.6.4.13.ge6580.dirty\n"}]}