summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-06 00:58:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-06 01:32:36 (GMT)
commit9b373229506c9f563b2e2f053c3f1d932789fbfd (patch)
tree917cc733d6d5da35e5c4dbaf6753a8d5eac90d1f /transport.c
parent8a33dd8b6e29722e86556c178d7c0b963804f0d3 (diff)
downloadgit-9b373229506c9f563b2e2f053c3f1d932789fbfd.zip
git-9b373229506c9f563b2e2f053c3f1d932789fbfd.tar.gz
git-9b373229506c9f563b2e2f053c3f1d932789fbfd.tar.bz2
clone -q: honor "quiet" option over native transports.
The earlier built-in conversion seems to have broken "git-clone"; this teaches the command to honor the "-q" option again when talking to the remote end over native transports (file://, git:// and ssh://). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/transport.c b/transport.c
index 3ff8519..6f549b3 100644
--- a/transport.c
+++ b/transport.c
@@ -645,7 +645,9 @@ static int fetch_refs_via_pack(struct transport *transport,
args.lock_pack = 1;
args.use_thin_pack = data->thin;
args.include_tag = data->followtags;
- args.verbose = transport->verbose > 0;
+ args.verbose = (transport->verbose > 0);
+ args.quiet = args.no_progress = (transport->verbose < 0);
+ args.no_progress = !isatty(1);
args.depth = data->depth;
for (i = 0; i < nr_heads; i++)