clone: use --progress to force progress reporting
[gitweb.git] / transport.c
index 7362ec09b2cbc6752489286a8280c16d3519f163..31c88f33a567d403859dd00a33c8f51ab31b030f 100644 (file)
@@ -476,7 +476,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 || (!transport->progress && !isatty(1));
+       args.no_progress = args.quiet || (!transport->progress && !isatty(2));
        args.depth = data->depth;
 
        for (i = 0; i < nr_heads; i++)