diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 00:32:31 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 10:32:29 +0000 |
commit | ed8cfbf04181d6fc229582a09c5c7657a53cd2e3 (patch) | |
tree | b0c4c06caecb92b497fef1567fe44f1808a00e7c /tests/rebase/merge.c | |
parent | 87fe57889192e8c83d8da8eb916b31bed6931a89 (diff) | |
download | libgit2-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/rebase/merge.c')
-rw-r--r-- | tests/rebase/merge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rebase/merge.c b/tests/rebase/merge.c index 6a2bd38d2..cccaac7b8 100644 --- a/tests/rebase/merge.c +++ b/tests/rebase/merge.c @@ -450,7 +450,7 @@ void test_rebase_merge__finish(void) cl_assert_equal_i(GIT_REPOSITORY_STATE_NONE, git_repository_state(repo)); cl_git_pass(git_reference_lookup(&head_ref, repo, "HEAD")); - cl_assert_equal_i(GIT_REF_SYMBOLIC, git_reference_type(head_ref)); + cl_assert_equal_i(GIT_REFERENCE_SYMBOLIC, git_reference_type(head_ref)); cl_assert_equal_s("refs/heads/gravy", git_reference_symbolic_target(head_ref)); /* Make sure the reflogs are updated appropriately */ @@ -512,7 +512,7 @@ void test_rebase_merge__detached_finish(void) cl_assert_equal_i(GIT_REPOSITORY_STATE_NONE, git_repository_state(repo)); cl_git_pass(git_reference_lookup(&head_ref, repo, "HEAD")); - cl_assert_equal_i(GIT_REF_OID, git_reference_type(head_ref)); + cl_assert_equal_i(GIT_REFERENCE_DIRECT, git_reference_type(head_ref)); /* Make sure the reflogs are updated appropriately */ cl_git_pass(git_reflog_read(&reflog, repo, "HEAD")); @@ -561,7 +561,7 @@ void test_rebase_merge__finish_with_ids(void) cl_assert_equal_i(GIT_REPOSITORY_STATE_NONE, git_repository_state(repo)); cl_git_pass(git_reference_lookup(&head_ref, repo, "HEAD")); - cl_assert_equal_i(GIT_REF_OID, git_reference_type(head_ref)); + cl_assert_equal_i(GIT_REFERENCE_DIRECT, git_reference_type(head_ref)); cl_assert_equal_oid(&commit_id, git_reference_target(head_ref)); /* reflogs are not updated as if we were operating on proper |