From 476e801111698ac5df6821f389c81abc017fc0c9 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 6 Jan 2006 18:53:16 -0800 Subject: [PATCH] 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 --- unpack-objects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unpack-objects.c b/unpack-objects.c index 5c5cb12f6..4b5b5cb3e 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]; -- 2.30.2