From: Jean-Noël Avila via GitGitGadget Date: Sun, 20 Mar 2022 21:54:48 GMT Subject: [PATCH 4/7] i18n: factorize "Server does not support foo" messages Message-ID: In-Reply-To: From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= Signed-off-by: Jean-Noël Avila --- fetch-pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetch-pack.c b/fetch-pack.c index 09b1cf6173a..fcbc5cc5944 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -1106,16 +1106,16 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args, print_verbose(args, _("Server supports %s"), "deepen-since"); deepen_since_ok = 1; } else if (args->deepen_since) - die(_("Server does not support --shallow-since")); + die(_("Server does not support %s"), "--shallow-since"); if (server_supports("deepen-not")) { print_verbose(args, _("Server supports %s"), "deepen-not"); deepen_not_ok = 1; } else if (args->deepen_not) - die(_("Server does not support --shallow-exclude")); + die(_("Server does not support %s"), "--shallow-exclude"); if (server_supports("deepen-relative")) print_verbose(args, _("Server supports %s"), "deepen-relative"); else if (args->deepen_relative) - die(_("Server does not support --deepen")); + die(_("Server does not support %s"), "--deepen"); if (!server_supports_hash(the_hash_algo->name, NULL)) die(_("Server does not support this repository's object format")); -- gitgitgadget