hgext/git/dirstate.py
changeset 45421 0c6b2cc9a7bb
parent 45420 c67529569643
child 45422 601e3658216d
--- a/hgext/git/dirstate.py	Mon Sep 07 17:12:29 2020 -0400
+++ b/hgext/git/dirstate.py	Mon Sep 07 17:13:45 2020 -0400
@@ -142,6 +142,8 @@
         gstatus = self.git.status()
         for path, status in gstatus.items():
             path = pycompat.fsencode(path)
+            if not match(path):
+                continue
             if status == pygit2.GIT_STATUS_IGNORED:
                 if path.endswith(b'/'):
                     continue