diff options
author | Ben Straub <bs@github.com> | 2012-11-19 08:38:08 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-28 01:17:45 +0400 |
commit | 2508cc66eb91597b12dc19721d9cea1f06e72107 (patch) | |
tree | 89e0ec2a924d9dc6b66461f462afbb999045ad27 /tests-clar/refs/unicode.c | |
parent | 469827812f95e979e3c6468567b2c9ed138a9849 (diff) |
Rename ref and reflog apis for consistency
Diffstat (limited to 'tests-clar/refs/unicode.c')
-rw-r--r-- | tests-clar/refs/unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/refs/unicode.c b/tests-clar/refs/unicode.c index fbe95b19f..424ee6405 100644 --- a/tests-clar/refs/unicode.c +++ b/tests-clar/refs/unicode.c @@ -27,14 +27,14 @@ void test_refs_unicode__create_and_lookup(void) /* Create the reference */ cl_git_pass(git_reference_lookup(&ref0, repo, master)); - cl_git_pass(git_reference_create_oid(&ref1, repo, REFNAME, git_reference_oid(ref0), 0)); + cl_git_pass(git_reference_create(&ref1, repo, REFNAME, git_reference_target(ref0), 0)); cl_assert(strcmp(REFNAME, git_reference_name(ref1)) == 0); /* Lookup the reference in a different instance of the repository */ cl_git_pass(git_repository_open(&repo2, "testrepo.git")); cl_git_pass(git_reference_lookup(&ref2, repo2, REFNAME)); - cl_assert(git_oid_cmp(git_reference_oid(ref1), git_reference_oid(ref2)) == 0); + cl_assert(git_oid_cmp(git_reference_target(ref1), git_reference_target(ref2)) == 0); cl_assert(strcmp(REFNAME, git_reference_name(ref2)) == 0); git_reference_free(ref0); |