]> git.ipfire.org Git - thirdparty/git.git/commit
refs: protect against chicken-and-egg recursion
authorPatrick Steinhardt <ps@pks.im>
Thu, 25 Jun 2026 09:20:09 +0000 (11:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Jun 2026 20:19:58 +0000 (13:19 -0700)
commit1686d03d4e53e3aabaee925eea0238422cec7d60
treef8c903355932c46c7032a287449f88be6edaffdb
parent988ee98c68d95761c1de13110aa96b7d8b4361d8
refs: protect against chicken-and-egg recursion

In the preceding commits we have fixed recursion when creating the
reference backends due to a chicken-and-egg situation with "onbranch"
conditions. Unfortunately, this issue has existed for a while, and we
didn't really have a good mechanism to detect this recursion.

Improve the status quo by detecting the recursion when creating the main
reference store.

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