Commit d6522d0
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>1 parent 79fa75d commit d6522d0
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
| 2362 | + | |
| 2363 | + | |
2362 | 2364 | | |
2363 | 2365 | | |
2364 | 2366 | | |
2365 | 2367 | | |
2366 | 2368 | | |
| 2369 | + | |
| 2370 | + | |
2367 | 2371 | | |
| 2372 | + | |
2368 | 2373 | | |
2369 | 2374 | | |
2370 | 2375 | | |
| 2376 | + | |
| 2377 | + | |
2371 | 2378 | | |
2372 | 2379 | | |
2373 | 2380 | | |
| |||
0 commit comments