summaryrefslogtreecommitdiff
path: root/tests/refs/createwithlog.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-30 17:24:36 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-11-23 13:35:53 +0100
commita6b508080cf73df7139c951feebb2281b9027752 (patch)
treeeafa47304374a18173920bee93febe96f02f789b /tests/refs/createwithlog.c
parentca84e058505a25b8f789ee1298a83e818b297ecc (diff)
downloadlibgit2-a6b508080cf73df7139c951feebb2281b9027752.tar.gz
refs: adjust to the new reflog API
Diffstat (limited to 'tests/refs/createwithlog.c')
-rw-r--r--tests/refs/createwithlog.c4
1 files changed, 2 insertions, 2 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);