Explorar el Código

Fix iter_tree_contents iteration.

Dave Borowitz hace 14 años
padre
commit
fbc1dc38fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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))