|
27 | 27 | }; |
28 | 28 |
|
29 | 29 | static int all, append, dry_run, force, keep, multiple, prune, update_head_ok, verbosity; |
| 30 | +static int progress; |
30 | 31 | static int tags = TAGS_DEFAULT; |
31 | 32 | static const char *depth; |
32 | 33 | static const char *upload_pack; |
@@ -56,6 +57,7 @@ static struct option builtin_fetch_options[] = { |
56 | 57 | OPT_BOOLEAN('k', "keep", &keep, "keep downloaded pack"), |
57 | 58 | OPT_BOOLEAN('u', "update-head-ok", &update_head_ok, |
58 | 59 | "allow updating of HEAD ref"), |
| 60 | + OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"), |
59 | 61 | OPT_STRING(0, "depth", &depth, "DEPTH", |
60 | 62 | "deepen history of shallow clone"), |
61 | 63 | OPT_END() |
@@ -823,7 +825,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv) |
823 | 825 | die("Where do you want to fetch from today?"); |
824 | 826 |
|
825 | 827 | transport = transport_get(remote, NULL); |
826 | | - transport_set_verbosity(transport, verbosity, 0); |
| 828 | + transport_set_verbosity(transport, verbosity, progress); |
827 | 829 | if (upload_pack) |
828 | 830 | set_option(TRANS_OPT_UPLOADPACK, upload_pack); |
829 | 831 | if (keep) |
|
0 commit comments