diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-05 17:58:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-05 18:32:36 -0700 |
commit | 9b373229506c9f563b2e2f053c3f1d932789fbfd (patch) | |
tree | 917cc733d6d5da35e5c4dbaf6753a8d5eac90d1f /transport.c | |
parent | 8a33dd8b6e29722e86556c178d7c0b963804f0d3 (diff) | |
download | git-9b373229506c9f563b2e2f053c3f1d932789fbfd.tar.gz |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/transport.c b/transport.c index 3ff851935f..6f549b336b 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++) |