# HG changeset patch # User Josef 'Jeff' Sipek # Date 1591019387 14400 # Node ID 47ce28a78f4a671633460c168ec007b9401d0187 # Parent 3679c88b7f4eb4dfc3c46e65d83de47d4ab19ee5 git: properly visit child tree objects when resolving a path diff -r 3679c88b7f4e -r 47ce28a78f4a hgext/git/manifest.py --- a/hgext/git/manifest.py Mon Jun 01 09:40:18 2020 -0400 +++ b/hgext/git/manifest.py Mon Jun 01 09:49:47 2020 -0400 @@ -56,8 +56,9 @@ return val t = self._tree comps = upath.split('/') + te = self._tree for comp in comps[:-1]: - te = self._tree[comp] + te = te[comp] t = self._git_repo[te.id] ent = t[comps[-1]] if ent.filemode == pygit2.GIT_FILEMODE_BLOB: