# HG changeset patch # User Josef 'Jeff' Sipek # Date 2020-06-01 13:22:53 # Node ID 935c9f347bdb7144a524d9a528cf71a6c65050c9 # Parent 472b14da52c2acd3b711bbd32678371b29df1715 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'/' ):