summaryrefslogtreecommitdiff
path: root/tests/refs/rename.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 00:32:31 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:32:29 +0000
commited8cfbf04181d6fc229582a09c5c7657a53cd2e3 (patch)
treeb0c4c06caecb92b497fef1567fe44f1808a00e7c /tests/refs/rename.c
parent87fe57889192e8c83d8da8eb916b31bed6931a89 (diff)
downloadlibgit2-ethomson/git_ref.tar.gz
references: use new names in internal usageethomson/git_ref
Update internal usage to use the `git_reference` names for constants.
Diffstat (limited to 'tests/refs/rename.c')
-rw-r--r--tests/refs/rename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/refs/rename.c b/tests/refs/rename.c
index 6ec8f65ea..9933bee1d 100644
--- a/tests/refs/rename.c
+++ b/tests/refs/rename.c
@@ -264,7 +264,7 @@ void test_refs_rename__overwrite(void)
git_oid id;
cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name));
- cl_assert(git_reference_type(ref) & GIT_REF_OID);
+ cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT);
git_oid_cpy(&id, git_reference_target(ref));
@@ -297,7 +297,7 @@ void test_refs_rename__prefix(void)
git_oid id;
cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name));
- cl_assert(git_reference_type(ref) & GIT_REF_OID);
+ cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT);
git_oid_cpy(&id, git_reference_target(ref));
@@ -330,7 +330,7 @@ void test_refs_rename__move_up(void)
git_oid id;
cl_git_pass(git_reference_lookup(&ref, g_repo, ref_master_name));
- cl_assert(git_reference_type(ref) & GIT_REF_OID);
+ cl_assert(git_reference_type(ref) & GIT_REFERENCE_DIRECT);
git_oid_cpy(&id, git_reference_target(ref));