Jelajahi Sumber

Fix iter_tree_contents iteration.

Dave Borowitz 14 tahun lalu
induk
melakukan
fbc1dc38fb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      dulwich/object_store.py

+ 1 - 1
dulwich/object_store.py

@@ -191,7 +191,7 @@ class BaseObjectStore(object):
             if not is_subtree or include_trees:
                 yield path, mode, hexsha
             if is_subtree:
-                entries = reversed(self[hexsha].iteritems())
+                entries = reversed(list(self[hexsha].iteritems()))
                 for name, entry_mode, entry_hexsha in entries:
                     entry_path = posixpath.join(path, name)
                     todo.append((entry_path, entry_mode, entry_hexsha))