summaryrefslogtreecommitdiff
path: root/test/git/test_index.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 23:31:26 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 23:31:26 +0200
commitb7a5c05875a760c0bf83af6617c68061bda6cfc5 (patch)
treecf2090d419ff714b4e1293523cf1568bc2331855 /test/git/test_index.py
parent58e2157ad3aa9d75ef4abb90eb2d1f01fba0ba2b (diff)
downloadgitpython-b7a5c05875a760c0bf83af6617c68061bda6cfc5.tar.gz
Adjusted tests to deal with API changes
Diffstat (limited to 'test/git/test_index.py')
-rw-r--r--test/git/test_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_index.py b/test/git/test_index.py
index 257acf10..7bc2ad7e 100644
--- a/test/git/test_index.py
+++ b/test/git/test_index.py
@@ -116,8 +116,8 @@ class TestTree(TestBase):
# test diff
# resetting the head will leave the index in a different state, and the
# diff will yield a few changes
- cur_head_commit = rw_repo.head.commit
- ref = rw_repo.head.reset(rw_repo, 'HEAD~6', index=True, working_tree=False)
+ cur_head_commit = rw_repo.head.reference.commit
+ ref = rw_repo.head.reset('HEAD~6', index=True, working_tree=False)
# diff against same index is 0
diff = index.diff()