# HG changeset patch # User Josef 'Jeff' Sipek # Date 1591018818 14400 # Node ID 3679c88b7f4eb4dfc3c46e65d83de47d4ab19ee5 # Parent 935c9f347bdb7144a524d9a528cf71a6c65050c9 git: don't yield paths for directories when walking diff -r 935c9f347bdb -r 3679c88b7f4e hgext/git/manifest.py --- a/hgext/git/manifest.py Mon Jun 01 09:22:53 2020 -0400 +++ b/hgext/git/manifest.py Mon Jun 01 09:40:18 2020 -0400 @@ -173,9 +173,8 @@ 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