diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-27 11:57:21 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-27 11:57:21 +0100 |
commit | 7ba46b8fba511fdc9b8890c36a6d941d9f2798fe (patch) | |
tree | 1c726c6a9478c834e88bb4fd05b5657929becb4f /test/git/test_commit.py | |
parent | 2740d2cf960cec75e0527741da998bf3c28a1a45 (diff) | |
download | gitpython-7ba46b8fba511fdc9b8890c36a6d941d9f2798fe.tar.gz |
Fixed issue with commit traversal due to missing visit_once in the traversal method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r-- | test/git/test_commit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py index bb2b22ee..e757e148 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -68,9 +68,9 @@ class TestCommit(TestBase): assert bfirst.next() == p10 # at some point, both iterations should stop - assert list(dfirst)[-1] == first assert list(bfirst)[-1] == first - + stoptraverse = self.rorepo.commit("254d04aa3180eb8b8daf7b7ff25f010cd69b4e7d").traverse() + list(stoptraverse) # ignore self assert start.traverse(ignore_self=False).next() == start |