hgext/git/manifest.py
changeset 45524 73a5aa5e1857
parent 45428 c8695439d7e3
child 45957 89a2afe31e82
--- a/hgext/git/manifest.py	Wed Sep 16 12:13:46 2020 -0700
+++ b/hgext/git/manifest.py	Tue Sep 22 09:06:09 2020 -0400
@@ -322,7 +322,8 @@
             for part in comps:
                 parent = trees[full]
                 try:
-                    new = self._repo[parent[pycompat.fsdecode(part)]]
+                    parent_tree_id = parent[pycompat.fsdecode(part)].id
+                    new = self._repo[parent_tree_id]
                 except KeyError:
                     # new directory
                     new = None