Submitter | Josef 'Jeff' Sipek |
---|---|
Date | June 1, 2020, 3:32 p.m. |
Message ID | <cb9f077123e7e204587b.1591025566@meili> |
Download | mbox | patch |
Permalink | /patch/46450/ |
State | Accepted |
Headers | show |
Comments
Patch
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'/' ):