Navigation Menu

Skip to content

Commit

Permalink
unpack-objects: default to quiet if stderr is not a tty.
Browse files Browse the repository at this point in the history
This would help cron/at jobs that run send-pack to mirror
repositories.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 7, 2006
1 parent 34c99da commit 476e801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unpack-objects.c
Expand Up @@ -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];

Expand Down

0 comments on commit 476e801

Please sign in to comment.