From 58fb1187b7b8f1e62d3930bdba9be5aba47a52c6 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 25 Jun 2010 00:19:39 +0200 Subject: index.reset is now partly implemented using python, but in fact it resorts to using git-read-tree to keep the stat information when merging one tree in. After all this is what needed to be implemented in python as well --- test/git/test_index.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test/git/test_index.py') diff --git a/test/git/test_index.py b/test/git/test_index.py index 09b49aaa..e9f99f04 100644 --- a/test/git/test_index.py +++ b/test/git/test_index.py @@ -578,11 +578,6 @@ class TestIndex(TestBase): @with_rw_repo('HEAD') def test_compare_write_tree(self, rw_repo): - def write_tree(index): - tree_sha = index.write_tree().sha - return Tree(index.repo, tree_sha, 0, '') - # END git cmd write tree - # write all trees and compare them # its important to have a few submodules in there too max_count = 25 @@ -593,8 +588,6 @@ class TestIndex(TestBase): count += 1 index = rw_repo.index.reset(commit) orig_tree = commit.tree - new_git_tree = write_tree(index) - assert new_git_tree == orig_tree assert index.write_tree() == orig_tree # END for each commit -- cgit v1.2.1