fetch: fixup set_head advice for warn-if-not-branch

Specifying the word 'branch' in the command is not correct - a mismatch with both the implementation in remote.c and the documentation. Signed-off-by: Matt Hunter <m@lfurio.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matt Hunter committed Jun 19, 2026 at 05:44 UTC 3e09c9e8207eb425ce45863da6bbfe11cd49a765
1 file changed +1 -1
builtin/fetch.c
+1 -1
@@ -1700,7 +1700,7 @@ static void set_head_advice_msg(const char *remote, const char *head_name)
1700 N_("Run 'git remote set-head %s %s' to follow the change, or set\n"
1701 "'remote.%s.followRemoteHEAD' configuration option to a different value\n"
1702 "if you do not want to see this message. Specifically running\n"
1703 - "'git config set remote.%s.followRemoteHEAD warn-if-not-branch-%s'\n"
1703 + "'git config set remote.%s.followRemoteHEAD warn-if-not-%s'\n"
1704 "will disable the warning until the remote changes HEAD to something else.");
1705
1706 advise_if_enabled(ADVICE_FETCH_SET_HEAD_WARN, _(message_advice_set_head),