hgext/git/manifest.py
changeset 44930 47ce28a78f4a
parent 44929 3679c88b7f4e
child 44931 f294b4e14fd0
--- 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: