aboutsummaryrefslogtreecommitdiffstats
path: root/promisor-remote.c
diff options
authorJunio C Hamano <gitster@pobox.com>2024-06-06 12:49:23 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-06 12:49:24 -0700
commitd11b0c75eca9b9cf0ede8caa0778faf6f22f674e (patch)
tree0b651cb3d21b3021890c542dbf2b525e898e5925 /promisor-remote.c
parentcf792653ad407badec34e67612231676057f9532 (diff)
parent7e17d954d8325824c40d0441eb10888d5178755e (diff)
downloadgit-d11b0c75eca9b9cf0ede8caa0778faf6f22f674e.tar.gz
Merge branch 'th/quiet-lazy-fetch-from-promisor'
The promisor.quiet configuration knob can be set to true to make lazy fetching from promisor remotes silent. * th/quiet-lazy-fetch-from-promisor: promisor-remote: add promisor.quiet configuration option
Diffstat (limited to 'promisor-remote.c')
-rw-r--r--promisor-remote.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/promisor-remote.c b/promisor-remote.c
index b414922c44..2ca7c2ae48 100644
--- a/promisor-remote.c
+++ b/promisor-remote.c
@@ -23,6 +23,7 @@ static int fetch_objects(struct repository *repo,
struct child_process child = CHILD_PROCESS_INIT;
int i;
FILE *child_in;
+ int quiet;
if (git_env_bool(NO_LAZY_FETCH_ENVIRONMENT, 0)) {
static int warning_shown;
@@ -41,6 +42,8 @@ static int fetch_objects(struct repository *repo,
"fetch", remote_name, "--no-tags",
"--no-write-fetch-head", "--recurse-submodules=no",
"--filter=blob:none", "--stdin", NULL);
+ if (!git_config_get_bool("promisor.quiet", &quiet) && quiet)
+ strvec_push(&child.args, "--quiet");
if (start_command(&child))
die(_("promisor-remote: unable to fork off fetch subprocess"));
child_in = xfdopen(child.in, "w");