summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py
index a5f184e6..e914b9a7 100644
--- a/test/git/test_commit.py
+++ b/test/git/test_commit.py
@@ -31,7 +31,7 @@ def assert_commit_serialization(rwrepo, commit_id, print_performance_info=False)
streamlen = stream.tell()
stream.seek(0)
- csha = rwrepo.odb.to_object(Commit.type, streamlen, stream)
+ csha = rwrepo.odb.store(Commit.type, streamlen, stream)
assert csha == cm.sha
nc = Commit(rwrepo, Commit.NULL_HEX_SHA, cm.tree.sha,
@@ -45,7 +45,7 @@ def assert_commit_serialization(rwrepo, commit_id, print_performance_info=False)
ns += 1
streamlen = stream.tell()
stream.seek(0)
- nc.sha = rwrepo.odb.to_object(Commit.type, streamlen, stream)
+ nc.sha = rwrepo.odb.store(Commit.type, streamlen, stream)
# if it worked, we have exactly the same contents !
assert nc.sha == cm.sha