summaryrefslogtreecommitdiff
path: root/unpack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-06 18:53:16 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-06 18:53:16 -0800
commit476e801111698ac5df6821f389c81abc017fc0c9 (patch)
tree1f28df93c5298d81a5347fb60a01ca5187aaf124 /unpack-objects.c
parent34c99da2a4324e9b4a9d3f59e8cd7114090bd22a (diff)
downloadgit-476e801111698ac5df6821f389c81abc017fc0c9.tar.gz
unpack-objects: default to quiet if stderr is not a tty.
This would help cron/at jobs that run send-pack to mirror repositories. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'unpack-objects.c')
-rw-r--r--unpack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack-objects.c b/unpack-objects.c
index 5c5cb12f6f..4b5b5cb3e2 100644
--- a/unpack-objects.c
+++ b/unpack-objects.c
@@ -269,6 +269,8 @@ int main(int argc, char **argv)
setup_git_directory();
+ quiet = !isatty(2);
+
for (i = 1 ; i < argc; i++) {
const char *arg = argv[i];