]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fetch: fixup set_head advice for warn-if-not-branch
authorMatt Hunter <m@lfurio.us>
Fri, 19 Jun 2026 09:44:20 +0000 (05:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jun 2026 16:19:35 +0000 (09:19 -0700)
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>
builtin/fetch.c

index c1d7c672f4e0d87d78d2c981828fff328ec2ca89..82969e230f5adbb2c6797069e1f07e86348a5969 100644 (file)
@@ -1700,7 +1700,7 @@ static void set_head_advice_msg(const char *remote, const char *head_name)
        N_("Run 'git remote set-head %s %s' to follow the change, or set\n"
           "'remote.%s.followRemoteHEAD' configuration option to a different value\n"
           "if you do not want to see this message. Specifically running\n"
-          "'git config set remote.%s.followRemoteHEAD warn-if-not-branch-%s'\n"
+          "'git config set remote.%s.followRemoteHEAD warn-if-not-%s'\n"
           "will disable the warning until the remote changes HEAD to something else.");
 
        advise_if_enabled(ADVICE_FETCH_SET_HEAD_WARN, _(message_advice_set_head),