changeset 44930:47ce28a78f4a

git: properly visit child tree objects when resolving a path
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Mon, 01 Jun 2020 09:49:47 -0400
parents 3679c88b7f4e
children f294b4e14fd0
files hgext/git/manifest.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: