summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 03:53:16 +0100
committerJunio C Hamano <junkio@cox.net>2006-01-07 03:53:16 +0100
commit476e801111698ac5df6821f389c81abc017fc0c9 (patch)
tree1f28df93c5298d81a5347fb60a01ca5187aaf124
parentSubstitute "/" with $opt_s in tag names as well as branch names (diff)
downloadgit-476e801111698ac5df6821f389c81abc017fc0c9.tar.xz
git-476e801111698ac5df6821f389c81abc017fc0c9.zip
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>
Diffstat (limited to '')
-rw-r--r--unpack-objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack-objects.c b/unpack-objects.c
index 5c5cb12f6f..4b5b5cb3e2 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];