# HG changeset patch # User Josef 'Jeff' Sipek <jef...@josefsipek.net> # Date 1591017773 14400 # Mon Jun 01 09:22:53 2020 -0400 # Node ID cb9f077123e7e204587b2b9146736ddcfb8d677d # Parent 1a21d199a8b00e5fb2566ca99fab417253b13b19 git: correctly check for type of object when walking
diff --git a/hgext/git/manifest.py b/hgext/git/manifest.py --- a/hgext/git/manifest.py +++ b/hgext/git/manifest.py @@ -168,7 +168,7 @@ class gittreemanifest(object): for te in tree: # TODO: can we prune dir walks with the matcher? realname = subdir + pycompat.fsencode(te.name) - if te.type == r'tree': + if te.type == pygit2.GIT_OBJ_TREE: for inner in self._walkonetree( self._git_repo[te.id], match, realname + b'/' ): _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel