Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
check stderr with isatty() instead of stdout when deciding to show progress
[gitweb.git]
/
transport-helper.c
diff --git
a/transport-helper.c
b/transport-helper.c
index 5078c7100f16e9d7ac08aad05e3797ad5b6626bc..bfe3bc30a97aaa0872d9570a2f93f8f4f6fdb492 100644
(file)
--- a/
transport-helper.c
+++ b/
transport-helper.c
@@
-144,7
+144,7
@@
static void standard_options(struct transport *t)
char buf[16];
int n;
int v = t->verbose;
- int no_progress = v < 0 || (!t->progress && !isatty(
1
));
+ int no_progress = v < 0 || (!t->progress && !isatty(
2
));
set_helper_option(t, "progress", !no_progress ? "true" : "false");