summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 02:53:16 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-01-07 02:53:16 (GMT)
commit476e801111698ac5df6821f389c81abc017fc0c9 (patch)
tree1f28df93c5298d81a5347fb60a01ca5187aaf124
parent34c99da2a4324e9b4a9d3f59e8cd7114090bd22a (diff)
downloadgit-476e801111698ac5df6821f389c81abc017fc0c9.zip
git-476e801111698ac5df6821f389c81abc017fc0c9.tar.gz
git-476e801111698ac5df6821f389c81abc017fc0c9.tar.bz2
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>
-rw-r--r--unpack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack-objects.c b/unpack-objects.c
index 5c5cb12..4b5b5cb 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];