Skip to content

Commit 2826ffa

Browse files
rcoupgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jonathan Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent eff4045 commit 2826ffa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
19911991
}
19921992

19931993
if (negotiate_only && !negotiation_tip.nr)
1994-
die(_("--negotiate-only needs one or more --negotiate-tip=*"));
1994+
die(_("--negotiate-only needs one or more --negotiation-tip=*"));
19951995

19961996
if (deepen_relative) {
19971997
if (deepen_relative < 0)

t/t5702-protocol-v2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ test_expect_success 'usage: --negotiate-only without --negotiation-tip' '
606606
setup_negotiate_only "$SERVER" "$URI" &&
607607
608608
cat >err.expect <<-\EOF &&
609-
fatal: --negotiate-only needs one or more --negotiate-tip=*
609+
fatal: --negotiate-only needs one or more --negotiation-tip=*
610610
EOF
611611
612612
test_must_fail git -c protocol.version=2 -C client fetch \

0 commit comments

Comments
 (0)