From accfe361443b3cdb8ea43ca0ccb8fbb2fa202e12 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 26 Nov 2009 18:16:13 +0100 Subject: tree: added traversal method, adjusted tests Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\! --- lib/git/objects/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/objects/utils.py') diff --git a/lib/git/objects/utils.py b/lib/git/objects/utils.py index 6c45f039..27caa083 100644 --- a/lib/git/objects/utils.py +++ b/lib/git/objects/utils.py @@ -134,7 +134,7 @@ class Traversable(object): while stack: d, item = stack.pop() # depth of item, item - + if item in visited: continue -- cgit v1.2.1