##// END OF EJS Templates
git: correctly check for type of object when walking
Josef 'Jeff' Sipek -
r45447:935c9f34 default
parent child Browse files
Show More
@@ -168,7 +168,7 b' class gittreemanifest(object):'
168 for te in tree:
168 for te in tree:
169 # TODO: can we prune dir walks with the matcher?
169 # TODO: can we prune dir walks with the matcher?
170 realname = subdir + pycompat.fsencode(te.name)
170 realname = subdir + pycompat.fsencode(te.name)
171 if te.type == r'tree':
171 if te.type == pygit2.GIT_OBJ_TREE:
172 for inner in self._walkonetree(
172 for inner in self._walkonetree(
173 self._git_repo[te.id], match, realname + b'/'
173 self._git_repo[te.id], match, realname + b'/'
174 ):
174 ):
General Comments 0
You need to be logged in to leave comments. Login now