summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-25 00:19:39 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-25 15:39:46 +0200
commit58fb1187b7b8f1e62d3930bdba9be5aba47a52c6 (patch)
treed701bb18fcb580f434a855243f0bd38c9dd90664 /test/git/test_index.py
parent402a6c2808db4333217aa300d0312836fd7923bd (diff)
downloadgitpython-58fb1187b7b8f1e62d3930bdba9be5aba47a52c6.tar.gz
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
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r--test/git/test_index.py7
1 files changed, 0 insertions, 7 deletions
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