aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorRobert Coup <robert@coup.net.nz>2022-01-28 14:36:02 +0000
committerJunio C Hamano <gitster@pobox.com>2022-01-28 15:02:04 -0800
commit2826ffad8c34b639fd41f62fac1236e36e9d83db (patch)
treee3d4f7aaf318d45757088b217a968f7719d804e3 /builtin/fetch.c
parentfetch: fix segfault in --negotiate-only without --negotiation-tip=* (diff)
downloadgit-2826ffad8c34b639fd41f62fac1236e36e9d83db.tar.gz
git-2826ffad8c34b639fd41f62fac1236e36e9d83db.zip
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 <robert@coup.net.nz> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 1 insertions, 1 deletions
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)