summaryrefslogtreecommitdiff
path: root/tests-clar/commit/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/commit/commit.c')
-rw-r--r--tests-clar/commit/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/commit/commit.c b/tests-clar/commit/commit.c
index 4cedcea1d..8f071ff94 100644
--- a/tests-clar/commit/commit.c
+++ b/tests-clar/commit/commit.c
@@ -37,7 +37,7 @@ void test_commit_commit__create_unexisting_update_ref(void)
NULL, "some msg", tree, 1, (const git_commit **) &commit));
cl_git_pass(git_reference_lookup(&ref, _repo, "refs/heads/foo/bar"));
- cl_assert(!git_oid_cmp(&oid, git_reference_oid(ref)));
+ cl_assert(!git_oid_cmp(&oid, git_reference_target(ref)));
git_tree_free(tree);
git_commit_free(commit);