receive-pack: fix funny ref error messsage
commitd81ba50a9b044d51039fc1a45fb6685d631d1dfe
authorZheNing Hu <adlternative@gmail.com>
Wed, 1 Mar 2023 10:20:28 +0000 (1 10:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Mar 2023 16:08:09 +0000 (1 08:08 -0800)
tree5a9a57af46019e65d65f2f07a0152450cde4ee7a
parentdadc8e6dacb629f46aee39bde90b6f09b73722eb
receive-pack: fix funny ref error messsage

When the user deletes the remote one level branch through
"git push origin -d refs/foo", remote will return an error:
"refusing to create funny ref 'refs/foo' remotely", here we
are not creating "refs/foo" instead wants to delete it, so a
better error description here would be: "refusing to update
funny ref 'refs/foo' remotely".

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c