diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 15:56:49 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-24 15:56:49 +0100 |
commit | ec0657cf5de9aeb5629cc4f4f38b36f48490493e (patch) | |
tree | ae7f08094c6fdcddad194783f3e18b5a724c0197 /test/test_reflog.py | |
parent | a17c43d0662bab137903075f2cff34bcabc7e1d1 (diff) | |
download | gitpython-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.py | 3 |
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 |