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 5c5cb12..4b5b5cb 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];