# HG changeset patch # User Josef 'Jeff' Sipek <jef...@josefsipek.net> # Date 1591018818 14400 # Mon Jun 01 09:40:18 2020 -0400 # Node ID e05b94be1ba0cd6e2ccd9c1688a82ff3a8103a7e # Parent cb9f077123e7e204587b2b9146736ddcfb8d677d 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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel