@matheusbsbs / matheus-bagliano / commits / 9b37322950
Fork 0

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>

Junio C Hamano committed Jul 5, 2008 at 17:58 UTC 9b373229506c9f563b2e2f053c3f1d932789fbfd
1 file changed +3 -1
transport.c
+3 -1
@@ -645,7 +645,9 @@ static int fetch_refs_via_pack(struct transport *transport,
645 args.lock_pack = 1;
646 args.use_thin_pack = data->thin;
647 args.include_tag = data->followtags;
648 - args.verbose = transport->verbose > 0;
648 + args.verbose = (transport->verbose > 0);
649 + args.quiet = args.no_progress = (transport->verbose < 0);
650 + args.no_progress = !isatty(1);
651 args.depth = data->depth;
652
653 for (i = 0; i < nr_heads; i++)