hgext/git/manifest.py
changeset 52644 e627cc25b6f3
parent 52620 2b65c9228dc0
child 52645 4cb75772818d
--- a/hgext/git/manifest.py	Sun Jan 05 22:23:31 2025 -0500
+++ b/hgext/git/manifest.py	Sun Jan 05 22:26:16 2025 -0500
@@ -277,10 +277,9 @@
             # TODO: can we prune dir walks with the matcher?
             realname = subdir + pycompat.fsencode(te.name)
             if te.type == pygit2.GIT_OBJ_TREE:
-                for inner in self._walkonetree(
+                yield from self._walkonetree(
                     self._git_repo[te.id], match, realname + b'/'
-                ):
-                    yield inner
+                )
             elif match(realname):
                 yield pycompat.fsencode(realname)