← Back to team overview

dulwich-users team mailing list archive

[PATCH 1/8] Fix iter_tree_contents iteration.

 

From: Dave Borowitz <dborowitz@xxxxxxxxxx>

Change-Id: I05e314cbd62abf8cc78d355892b0678b6637576d
---
 dulwich/object_store.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dulwich/object_store.py b/dulwich/object_store.py
index 725504f..c1716bd 100644
--- a/dulwich/object_store.py
+++ b/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))
-- 
1.7.1




References