From 2826ffad8c34b639fd41f62fac1236e36e9d83db Mon Sep 17 00:00:00 2001 From: Robert Coup Date: Fri, 28 Jan 2022 14:36:02 +0000 Subject: fetch: fix negotiate-only error message The error message when invoking a negotiate-only fetch without providing any tips incorrectly refers to a --negotiate-tip=* argument. Fix this to use the actual argument, --negotiation-tip=*. Signed-off-by: Robert Coup Reviewed-by: Jonathan Tan Signed-off-by: Junio C Hamano --- builtin/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/fetch.c') diff --git a/builtin/fetch.c b/builtin/fetch.c index 3f3fa0859f..c480db32ce 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1991,7 +1991,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) } if (negotiate_only && !negotiation_tip.nr) - die(_("--negotiate-only needs one or more --negotiate-tip=*")); + die(_("--negotiate-only needs one or more --negotiation-tip=*")); if (deepen_relative) { if (deepen_relative < 0) -- cgit v1.3-5-g9baa