X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=transport.c;h=6eb65b873afc9dfd457e974b63d88350bb8dc913;hb=af9a01e1c2f6a8814b817eb7f3d78814389a3212;hp=3ff851935ff8d018a926084b89cb31bbb3d30a07;hpb=196821f440d46029f0399a7d97c0cfc78a870244;p=git.git diff --git a/transport.c b/transport.c index 3ff851935..6eb65b873 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++) @@ -709,7 +711,8 @@ static int is_local(const char *url) { const char *colon = strchr(url, ':'); const char *slash = strchr(url, '/'); - return !colon || (slash && slash < colon); + return !colon || (slash && slash < colon) || + has_dos_drive_prefix(url); } static int is_file(const char *url)