Skip to content

Commit

Permalink
clone -q: honor "quiet" option over native transports.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jul 6, 2008
1 parent 8a33dd8 commit 9b37322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 9b37322

Please sign in to comment.