]> git.ipfire.org Git - thirdparty/git.git/commit
fetch: fix erroneous set_head advice message
authorBence Ferdinandy <bence@ferdinandy.com>
Sun, 5 Jan 2025 16:09:40 +0000 (17:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Jan 2025 14:50:03 +0000 (06:50 -0800)
commit233d48f5de1d6cdba0eb64165212dfbf6fa444d7
tree64c45f001f78f296ab7b6f33a3c0ab0ef7325638
parent012bc566bad79876f4809d1e730a348b419772d0
fetch: fix erroneous set_head advice message

9e2b7005be (fetch set_head: add warn-if-not-$branch option, 2024-12-05)
tried to expand the advice message for set_head with the new option, but
unfortunately did not manage to add the right incantation. Fix the
advice message with the correct usage of warn-if-not-$branch.

Reported-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c