summaryrefslogtreecommitdiff
path: root/test/test_reflog.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-24 15:56:49 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-24 15:56:49 +0100
commitec0657cf5de9aeb5629cc4f4f38b36f48490493e (patch)
treeae7f08094c6fdcddad194783f3e18b5a724c0197 /test/test_reflog.py
parenta17c43d0662bab137903075f2cff34bcabc7e1d1 (diff)
downloadgitpython-ec0657cf5de9aeb5629cc4f4f38b36f48490493e.tar.gz
Unified object and commit handling which should make the reflog handling much easier. There is some bug in it though, it still needs fixing
Diffstat (limited to 'test/test_reflog.py')
-rw-r--r--test/test_reflog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_reflog.py b/test/test_reflog.py
index e99e5ba5..0c8e538b 100644
--- a/test/test_reflog.py
+++ b/test/test_reflog.py
@@ -60,6 +60,7 @@ class TestRefLog(TestBase):
# test serialize and deserialize - results must match exactly
binsha = chr(255)*20
msg = "my reflog message"
+ cr = repo.config_reader()
for rlp in (rlp_head, rlp_master):
reflog = RefLog.from_file(rlp)
tfile = os.path.join(tdir, os.path.basename(rlp))
@@ -73,7 +74,7 @@ class TestRefLog(TestBase):
assert open(tfile).read() == open(rlp).read()
# append an entry
- entry = RefLog.append_entry(tfile, IndexObject.NULL_BIN_SHA, binsha, msg)
+ entry = RefLog.append_entry(cr, tfile, IndexObject.NULL_BIN_SHA, binsha, msg)
assert entry.oldhexsha == IndexObject.NULL_HEX_SHA
assert entry.newhexsha == 'f'*40
assert entry.message == msg