tree index fixed

This commit is contained in:
Dmitry Zuikov 2024-04-20 17:11:17 +03:00
parent 933fd5154f
commit f40d4fc15e
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,10 @@ buildCommitTreeIndex dir = do
for_ (Map.toList trees) $ \(t,h0) -> do
case t of
[_] -> insertTree co root h0
_ -> pure ()
let child = tailSafe t
debug $ red "TREE-REL:" <+> pretty t
let parent = Map.lookup child trees