summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-15 08:51:01 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-15 07:30:52 -0700
commit993d57ededa2238e7526ccdb05b39b0265053f37 (patch)
tree6e690bb62f878a9db3853934d2586b41daea43a6 /git-svn.perl
parent31951c22489dc4238ef881478a896a460531b722 (diff)
refs: pseudorefs are no refs
The `is_root_ref()` function will happily clarify a pseudoref as a root ref, even though pseudorefs are no refs. Next to being wrong, it also leads to inconsistent behaviour across ref backends: while the "files" backend accidentally knows to parse those pseudorefs and thus yields them to the caller, the "reftable" backend won't ever see the pseudoref at all because they are never stored in the "reftable" backend. Fix this issue by filtering out pseudorefs in `is_root_ref()`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
0 files changed, 0 insertions, 0 deletions