diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-10-09 01:40:32 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-09 11:26:17 -0700 |
commit | 21188b1eafd3741fda0f7905dc997279a17b50ba (patch) | |
tree | 68bbf5f02d00fd354efd097fff73ec09f4d9c4b6 /transport.c | |
parent | 23abd3f48cb217d1558fa1984bfa8c502717c08f (diff) | |
download | git-21188b1eafd3741fda0f7905dc997279a17b50ba.tar.gz |
Implement git clone -v
The new -v option forces the progressbar, even in case the output
is not a terminal. This can be useful if the caller is an IDE or
wrapper which wants to scrape the progressbar from stderr and show
its information in a different format.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c index 5110c56c4e..1c510a3360 100644 --- a/transport.c +++ b/transport.c @@ -644,7 +644,7 @@ static int fetch_refs_via_pack(struct transport *transport, args.include_tag = data->followtags; args.verbose = (transport->verbose > 0); args.quiet = (transport->verbose < 0); - args.no_progress = args.quiet || !isatty(1); + args.no_progress = args.quiet || (!transport->progress && !isatty(1)); args.depth = data->depth; for (i = 0; i < nr_heads; i++) |