summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/refs/createwithlog.c4
-rw-r--r--tests/refs/settargetwithlog.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/refs/createwithlog.c b/tests/refs/createwithlog.c
index 34ab8067f..ff36ffdcd 100644
--- a/tests/refs/createwithlog.c
+++ b/tests/refs/createwithlog.c
@@ -38,7 +38,7 @@ void test_refs_createwithlog__creating_a_direct_reference_adds_a_reflog_entry(vo
cl_git_pass(
git_reference_create_with_log(&reference, g_repo, name, &id, 0, signature, message));
- cl_git_pass(git_reflog_read(&reflog, reference));
+ cl_git_pass(git_reflog_read(&reflog, g_repo, name));
cl_assert_equal_sz(1, git_reflog_entrycount(reflog));
entry = git_reflog_entry_byindex(reflog, 0);
@@ -69,7 +69,7 @@ void test_refs_createwithlog__creating_a_symbolic_reference_adds_a_reflog_entry(
cl_git_pass(git_reference_symbolic_create_with_log(&reference, g_repo,
name, current_head_target, 0, signature, message));
- cl_git_pass(git_reflog_read(&reflog, reference));
+ cl_git_pass(git_reflog_read(&reflog, g_repo, name));
cl_assert_equal_sz(1, git_reflog_entrycount(reflog));
entry = git_reflog_entry_byindex(reflog, 0);
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(&current_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);