diff --git a/hgext/git/manifest.py b/hgext/git/manifest.py --- a/hgext/git/manifest.py +++ b/hgext/git/manifest.py @@ -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