# HG changeset patch # User Josef 'Jeff' Sipek # Date 2020-06-01 13:40:18 # Node ID 3679c88b7f4eb4dfc3c46e65d83de47d4ab19ee5 # Parent 935c9f347bdb7144a524d9a528cf71a6c65050c9 git: don't yield paths for directories when walking diff --git a/hgext/git/manifest.py b/hgext/git/manifest.py --- a/hgext/git/manifest.py +++ b/hgext/git/manifest.py @@ -173,9 +173,8 @@ class gittreemanifest(object): self._git_repo[te.id], match, realname + b'/' ): yield inner - if not match(realname): - continue - yield pycompat.fsencode(realname) + elif match(realname): + yield pycompat.fsencode(realname) def walk(self, match): # TODO: this is a very lazy way to merge in the pending