Skip to content

Commit a41e394

Browse files
committed
Merge branch 'bf/fetch-set-head-config'
A hotfix on an advice messagge added during this cycle. * bf/fetch-set-head-config: fetch: fix erroneous set_head advice message
2 parents b74ff38 + 233d48f commit a41e394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,8 +1588,8 @@ static void set_head_advice_msg(const char *remote, const char *head_name)
15881588
N_("Run 'git remote set-head %s %s' to follow the change, or set\n"
15891589
"'remote.%s.followRemoteHEAD' configuration option to a different value\n"
15901590
"if you do not want to see this message. Specifically running\n"
1591-
"'git config set remote.%s.followRemoteHEAD %s' will disable the warning\n"
1592-
"until the remote changes HEAD to something else.");
1591+
"'git config set remote.%s.followRemoteHEAD warn-if-not-branch-%s'\n"
1592+
"will disable the warning until the remote changes HEAD to something else.");
15931593

15941594
advise_if_enabled(ADVICE_FETCH_SET_HEAD_WARN, _(message_advice_set_head),
15951595
remote, head_name, remote, remote, head_name);

0 commit comments

Comments
 (0)