refs: refuse to write pseudorefs
commit8e4f5c2dc26e8e88c8c4784f133d2b35a771d2ac
authorPatrick Steinhardt <ps@pks.im>
Wed, 15 May 2024 06:51:10 +0000 (15 08:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 May 2024 14:30:52 +0000 (15 07:30 -0700)
treec17cf925061fe0ad3e5b9280c6f6e450a978abbb
parentf1701f279a3678e95daa5c093b8d30e815c1701b
refs: refuse to write pseudorefs

Pseudorefs are not stored in the ref database as by definition, they
carry additional metadata that essentially makes them not a ref. As
such, writing pseudorefs via the ref backend does not make any sense
whatsoever as the ref backend wouldn't know how exactly to store the
data.

Restrict writing pseudorefs via the ref backend.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
t/t5510-fetch.sh