Code

unpack-objects: default to quiet if stderr is not a tty.
authorJunio C Hamano <junkio@cox.net>
Sat, 7 Jan 2006 02:53:16 +0000 (18:53 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 7 Jan 2006 02:53:16 +0000 (18:53 -0800)
This would help cron/at jobs that run send-pack to mirror
repositories.

Signed-off-by: Junio C Hamano <junkio@cox.net>
unpack-objects.c

index 5c5cb12f6fa2a9a8fe061c2e75380c8b9e7ebaf1..4b5b5cb3e22454fe487002f698272a19a1d8861d 100644 (file)
@@ -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];