diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-30 17:24:36 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-23 13:35:53 +0100 |
| commit | a6b508080cf73df7139c951feebb2281b9027752 (patch) | |
| tree | eafa47304374a18173920bee93febe96f02f789b /tests/refs/settargetwithlog.c | |
| parent | ca84e058505a25b8f789ee1298a83e818b297ecc (diff) | |
| download | libgit2-a6b508080cf73df7139c951feebb2281b9027752.tar.gz | |
refs: adjust to the new reflog API
Diffstat (limited to 'tests/refs/settargetwithlog.c')
| -rw-r--r-- | tests/refs/settargetwithlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/refs/settargetwithlog.c b/tests/refs/settargetwithlog.c index e1f73db56..99377dad7 100644 --- a/tests/refs/settargetwithlog.c +++ b/tests/refs/settargetwithlog.c @@ -41,7 +41,7 @@ void test_refs_settargetwithlog__updating_a_direct_reference_adds_a_reflog_entry cl_git_pass(git_reference_set_target_with_log( &reference_out, reference, &target_id, signature, message)); - cl_git_pass(git_reflog_read(&reflog, reference_out)); + cl_git_pass(git_reflog_read(&reflog, g_repo, br2_name)); entry = git_reflog_entry_byindex(reflog, 0); cl_assert(git_oid_cmp(¤t_id, &entry->oid_old) == 0); @@ -80,7 +80,7 @@ void test_refs_settargetwithlog__updating_a_symbolic_reference_adds_a_reflog_ent cl_assert_equal_s( br2_name, git_reference_symbolic_target(reference_out)); - cl_git_pass(git_reflog_read(&reflog, reference)); + cl_git_pass(git_reflog_read(&reflog, g_repo, name)); entry = git_reflog_entry_byindex(reflog, 0); cl_assert(git_oid_streq(&entry->oid_old, master_tip) == 0); |
