Fix iter_tree_contents iteration.
authorDave Borowitz <dborowitz@google.com>
Sun, 1 Aug 2010 01:57:19 +0000 (03:57 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 1 Aug 2010 01:57:19 +0000 (03:57 +0200)
dulwich/object_store.py

index 725504f..c1716bd 100644 (file)
@@ -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))